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
Provide an empty array as the first argument for the PolymorphicSerializer.serialize function
Expected behavior*
When providing an empty array to the polymorphic serializer serialize function an unhandled type error is thrown: Reduce of empty array with no initial value
Platform*
OS: macOS - Sonoma 14.3.1
Browser N/A
Version: 1.11.0
Additional context
Stack:
TypeError: Reduce of empty array with no initial value
at Array.reduce (<anonymous>)
at PolymorphicSerializer.serialize (/[email protected]/node_modules/ts-japi/lib/classes/polymorphic-serialiser.js:20:30)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
message: 'Reduce of empty array with no initial value'
The text was updated successfully, but these errors were encountered:
Describe the bug*
When
To Reproduce*
Provide an empty array as the first argument for the
PolymorphicSerializer.serialize
functionExpected behavior*
When providing an empty array to the polymorphic serializer
serialize
function an unhandled type error is thrown:Reduce of empty array with no initial value
Platform*
Additional context
Stack:
The text was updated successfully, but these errors were encountered: