Skip to content

Commit

Permalink
Fix type error for array+object shorthand
Browse files Browse the repository at this point in the history
Something like this didn't work before:

```
const allFeedSchema = new schema.Entity('posts', { authors: [{ node: authorSchema }] });
```

Fixes #322
  • Loading branch information
unindented authored Feb 9, 2018
1 parent 84bac9d commit 8dc6ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export type Schema =
schema.Object[] |
schema.Union[] |
schema.Values[] |
{[key: string]: Schema};
{[key: string]: Schema | Schema[]};

export function normalize(
data: any,
Expand Down

0 comments on commit 8dc6ca0

Please sign in to comment.