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 using postgres, and have added this to my code, but I still get string instead of number for DOUBLE/FLOAT.
However BIGINT can get number instead of string after adding these code
Issue
Relevent: sequelize/sequelize#8019
I have defined the following model using sequelize-typescript
and I also have a unit test which validates the types of the model fields are returned as expected:
The test above produces the following error
which indicates that the value returned back from the model is a string. Even though the static type shown is
number
Versions
Issue type
Actual behavior
The value of the field marked as
DOUBLE
gives a string valueExpected behavior
The value of the
DOUBLE
field should give a numberThe text was updated successfully, but these errors were encountered: