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
Also, 2.0.3 published on npm differs from 2.0.3 tagged in this repository. The change to make callback optional is included in the 2.0.3 tag, but it's still required in 2.0.3 on npm:
main.ts:9:1 - error TS2554: Expected 4-5 arguments, but got 3.
9 update(User, user, {name: "Test"})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/serializr/lib/core/update.d.ts:16:74
16 export default function update(modelSchema: any, target: any, json: any, callback: any, customArgs?: any): void;
~~~~~~~~~~~~~
An argument for 'callback' was not provided.
The text was updated successfully, but these errors were encountered:
Upgrading from 1.5.1 to 2.0.3, I'm getting an error with
update
calls that omit themodelSchema
argument. For example:Seems like these overloads should use
export default function
instead ofexport function
:serializr/src/core/update.ts
Lines 23 to 35 in 69fed6f
Also, 2.0.3 published on npm differs from 2.0.3 tagged in this repository. The change to make
callback
optional is included in the 2.0.3 tag, but it's still required in 2.0.3 on npm:The text was updated successfully, but these errors were encountered: