You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2345: Argument of type '{ $unset: number[]; }' is not assignable to parameter of type 'Query<Data[]>'.
Type '{ $unset: number[]; }' is not assignable to type '(old: Data[]) => any'.
Type '{ $unset: number[]; }' provides no match for the signature '(old: Data[]): any'.
The text was updated successfully, but these errors were encountered:
SaphuA
changed the title
TypeScript and $unset
[Bug] Typings and $unset
Feb 14, 2018
update(data, { $unset: [3] })
Gives:
The text was updated successfully, but these errors were encountered: