Skip to content

Commit

Permalink
fix: the observe api function typescript signature updated
Browse files Browse the repository at this point in the history
  • Loading branch information
betula committed Jun 20, 2021
1 parent 61da982 commit d2e953d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@ type SignalEntry = {
//

type Observe = {
<T extends FC>(FunctionComponent: T): React.MemoExoticComponent<T>;
<Props = {}>(FunctionComponent: FC<Props>): React.MemoExoticComponent<FC<Props>>;
nomemo: {
<T extends FC>(FunctionComponent: T): T;
<Props = {}>(FunctionComponent: FC<Props>): FC<Props>;
}
}
type UseScoped = {
Expand Down

0 comments on commit d2e953d

Please sign in to comment.