Skip to content

Commit

Permalink
fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
talentlessguy committed Aug 31, 2024
1 parent 2522757 commit 21e9220
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
4 changes: 3 additions & 1 deletion components/src/css/rainbow-spinkles.css.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { createRainbowSprinkles, defineProperties } from 'rainbow-sprinkles'

import type { SprinklesFn } from 'rainbow-sprinkles/createRuntimeFn'

import { commonVars, modeVars } from './theme.css'

// TODO: Review order of properties. More specific properties should come last.
Expand Down Expand Up @@ -154,6 +156,6 @@ const responsiveProperties = defineProperties({
},
})

export const rainbowSprinkles = createRainbowSprinkles(responsiveProperties)
export const rainbowSprinkles = createRainbowSprinkles(responsiveProperties) as SprinklesFn<[typeof responsiveProperties]>

export type Sprinkles = Parameters<typeof rainbowSprinkles>[0]
28 changes: 14 additions & 14 deletions components/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"extends":"../tsconfig.json",
"compilerOptions": {
"types": ["vite/client", "vitest/globals", "node"],
"outDir": "dist",
"declaration": true,
"baseUrl": ".",
"paths": {
"!/*": ["../*"],
"@/*": ["./*"],
"test-utils": ["./test"]
}
},
"include": ["src/**/*"],
"exclude": ["dist"]
"extends":"../tsconfig.json",
"compilerOptions": {
"types": ["vite/client", "vitest/globals", "node"],
"outDir": "dist",
"declaration": true,
"baseUrl": ".",
"paths": {
"!/*": ["../*"],
"@/*": ["./*"],
"test-utils": ["./test"]
}
},
"include": ["src/**/*"],
"exclude": ["dist"]
}
2 changes: 1 addition & 1 deletion docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"],
"@/*": ["../components/*"],
"@/*": ["../components/*"]
},
"incremental": true,
"target": "esnext",
Expand Down

0 comments on commit 21e9220

Please sign in to comment.