Skip to content

Commit

Permalink
Fix useFela hook types to support composition (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
hedwiggggg authored Jan 19, 2021
1 parent 7ccd60b commit 0b0a203
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/preact-fela/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2066,9 +2066,7 @@ declare module "preact-fela" {
): Preact.ComponentChild;
}

export type CssFelaStyle<T, P> = IStyle | StyleFunction<T, P>;

export type CssFunction<T, P> = (...style: CssFelaStyle<T, P>[]) => string;
export type CssFunction<T, P> = (...style: FelaStyle<T, P>[]) => string;

export interface FelaHookProps<T, P> {
css: CssFunction<T, P>;
Expand Down

1 comment on commit 0b0a203

@vercel
Copy link

@vercel vercel bot commented on 0b0a203 Jan 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.