Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed Dec 9, 2023
1 parent 253905a commit ef1f0fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/css/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ export {
variables
}


type MasterCSSDeclarations = CSSDeclarations | { [key: string]: number }
export type VariableValue = number | string | Array<number | string>
export type VariableDefinition = { [key in '' | `@${string}`]?: VariableValue } & { [key: string]: VariableValue | VariableDefinition }
export type AnimationDefinition = { [key in 'from' | 'to']?: CSSDeclarations } & { [key: string]: CSSDeclarations }
export type AnimationDefinition = { [key in 'from' | 'to']?: MasterCSSDeclarations } & { [key: string]: MasterCSSDeclarations }
export type AnimationDefinitions = { [key: string]: AnimationDefinition }
export type SelectorDefinitions = { [key: string]: string | string[] | SelectorDefinitions }
export type MediaQueryDefinitions = { [key: string]: number | string | MediaQueryDefinitions }
export type StyleDefinitions = { [key: string]: string | StyleDefinitions }
export type RuleDefinitions = { [key in keyof typeof rules | string]?: RuleDefinition }
export type VariableDefinitions = { [key in keyof typeof rules]?: VariableDefinition } & { [key: string]: VariableDefinition | VariableValue }
export type SemanticDefinitions = { [key in keyof typeof semantics]?: CSSDeclarations } & { [key: string]: CSSDeclarations }
export type SemanticDefinitions = { [key in keyof typeof semantics]?: MasterCSSDeclarations } & { [key: string]: MasterCSSDeclarations }
export interface FunctionDefinition {
unit?: string
colored?: boolean
Expand All @@ -69,4 +69,4 @@ export interface Config {
functions?: FunctionDefinitions,
animations?: AnimationDefinitions
themeDriver?: 'class' | 'media' | 'host'
}
}

0 comments on commit ef1f0fb

Please sign in to comment.