Skip to content

Commit

Permalink
feat(types): add TKey (#42)
Browse files Browse the repository at this point in the history
Add TKey to the template so that TTailwindString can be used in objects.
  • Loading branch information
pspeter3 committed Sep 3, 2020
1 parent b736efa commit 8011ab3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/utils/baseTemplateString.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ export type TClasses =
export type TTailwindString = "TAILWIND_STRING"
export type TKey = TClasses | TTailwindString
export type TArg =
| TClasses
| null
| undefined
| {[key in TClasses]?: boolean}
| {[key in TKey]?: boolean}
| TTailwindString
export type TTailwind = (...args: TArg[]) => TTailwindString
Expand Down

0 comments on commit 8011ab3

Please sign in to comment.