diff --git a/components/src/css/rainbow-spinkles.css.ts b/components/src/css/rainbow-spinkles.css.ts index 43aa9253..bfd76857 100644 --- a/components/src/css/rainbow-spinkles.css.ts +++ b/components/src/css/rainbow-spinkles.css.ts @@ -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. @@ -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[0] diff --git a/components/tsconfig.json b/components/tsconfig.json index 19492fc2..4a8f5449 100644 --- a/components/tsconfig.json +++ b/components/tsconfig.json @@ -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"] } \ No newline at end of file diff --git a/docs/tsconfig.json b/docs/tsconfig.json index bbadedfc..ce075bfa 100644 --- a/docs/tsconfig.json +++ b/docs/tsconfig.json @@ -4,7 +4,7 @@ "baseUrl": ".", "paths": { "~/*": ["./src/*"], - "@/*": ["../components/*"], + "@/*": ["../components/*"] }, "incremental": true, "target": "esnext",