Skip to content

Commit

Permalink
fix(tokens): make token value more permissive
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Sep 8, 2022
1 parent a0fb46d commit d4386bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/types/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import type { FilterStartingWith, WrapUnion } from '.'
// @ts-ignore - Can be not found
import type { GeneratedPinceauTheme, GeneratedTokensPaths } from '#pinceau/types'

type PermissiveKey = string

export interface DesignToken<T = string | number> {
export interface DesignToken<T = string | number | any> {
/**
* The raw value of the token.
*/
Expand Down Expand Up @@ -39,10 +37,10 @@ export interface DesignToken<T = string | number> {
item?: string
subitem?: string
state?: string
[key: PermissiveKey]: any
[key: string]: any
}
/* Permissive type */
[key: PermissiveKey]: any
[key: string]: any
}

export interface PinceauTokens {
Expand Down

0 comments on commit d4386bc

Please sign in to comment.