Skip to content

Commit

Permalink
make options for each key in collection optional
Browse files Browse the repository at this point in the history
  • Loading branch information
armanozak committed May 2, 2021
1 parent 2c5170d commit eac07a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ng-observe/src/lib/ng-observe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export type ObservableCollection<Collection> = Collection extends Array<infer Va
export type ObserveCollectionOptions<Collection> = Collection extends Array<any>
? Array<ObserveValueOptions>
: {
[Key in keyof Collection]: ObserveValueOptions;
[Key in keyof Collection]?: ObserveValueOptions;
};

export type ObservedValues<Collection> = Collection extends Array<infer Value>
Expand Down

0 comments on commit eac07a9

Please sign in to comment.