Skip to content

Commit

Permalink
fix(reactive-react): fix observer 2nd generic type (#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
cncolder authored Aug 30, 2021
1 parent 5739fda commit 4b18a6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/reactive-react/src/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import hoistNonReactStatics from 'hoist-non-react-statics'
import { useObserver } from './hooks'
import { IObserverOptions, IObserverProps } from './types'

export function observer<P, Options extends IObserverOptions>(
export function observer<
P,
Options extends IObserverOptions = IObserverOptions
>(
component: React.FunctionComponent<P>,
options?: Options
): React.MemoExoticComponent<
Expand Down

0 comments on commit 4b18a6b

Please sign in to comment.