Skip to content
This repository has been archived by the owner on Mar 20, 2022. It is now read-only.

Commit

Permalink
fix(typescript): entities undefined if none found (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Martin committed Feb 22, 2020
1 parent 09256f6 commit a8ac881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -57,7 +57,7 @@ export interface SchemaArray<T> extends Array<Schema<T>> {}

export type NormalizedSchema<E, R> = { entities: E, result: R };

export function normalize<T = any, E = { [key:string]: { [key:string]: T }}, R = any>(
export function normalize<T = any, E = { [key:string]: { [key:string]: T } | undefined}, R = any>(
data: any,
schema: Schema<T>
): NormalizedSchema<E, R>;
Expand Down

0 comments on commit a8ac881

Please sign in to comment.