Skip to content

Commit

Permalink
fix: Type inferencing for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jan 5, 2020
1 parent a2f1cfb commit 1fa5f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest-hooks/src/state/selectors/useDenormalized.ts
Expand Up @@ -27,7 +27,7 @@ export default function useDenormalized<
params: ParamsFromShape<Shape> | null,
state: State<any>,
): [
DenormalizeNullable<typeof schema>,
DenormalizeNullable<Shape['schema']>,
typeof params extends null ? false : boolean,
] {
// Select from state
Expand Down

0 comments on commit 1fa5f2c

Please sign in to comment.