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
I'm having trouble using properties of type Buffer in my ts-mongoose models. Whenever I try to assign a Buffer-type object to a property defined as Type.buffer, I get the following error: error TS2739: Type 'Buffer' is missing the following properties from type 'Buffer': subtype, toObject
src/test.ts:10:1 - error TS2739: Type 'Buffer' is missing the following properties from type 'Buffer': subtype, toObject
10 test.buf = buf;
~~~~~~~~
Found 1 error.
I'm having trouble using properties of type
Buffer
in my ts-mongoose models. Whenever I try to assign aBuffer
-type object to a property defined asType.buffer
, I get the following error:error TS2739: Type 'Buffer' is missing the following properties from type 'Buffer': subtype, toObject
test.ts
npm exec tsc
:ts-mongoose 0.0.24
mongoose 5.12.2
typescript 4.2.3
The text was updated successfully, but these errors were encountered: