Skip to content

Commit

Permalink
fix: use InlineDirective to type lazy helper
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Jan 18, 2021
1 parent 89ab6d0 commit 69f59bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/css/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ function evaluateFunctions(this: TW, key: string, value: unknown): unknown {
return is.function(value) ? this(value as InlineDirective) : value
}

// eslint-disable-next-line @typescript-eslint/ban-types
const lazy = <T extends Function>(
const lazy = <T extends InlineDirective>(
directive: T,
data: unknown,
tw: TW | null | undefined | void,
Expand Down

0 comments on commit 69f59bf

Please sign in to comment.