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 just started to use this module, and I wonder if it's possible to generate typescript nullable type ?
Indeed, for ones who use typescript with --strictNullChecks flag, it would be very useful to generate types nullable with union type.
For example, for a SQL nullable string, it would generate type : string | null, etc.
I think it would be better to have this optional.
The text was updated successfully, but these errors were encountered:
abenhamdine
changed the title
[Feat. request] Support nullable type
Support nullable type
Dec 25, 2016
An idea would be to modifiy getTableDefinition to include SELECT is_nullable
Then use this information to generate : string | null or : string accordingly.
Hi and thx a lot for this module.
I just started to use this module, and I wonder if it's possible to generate typescript nullable type ?
Indeed, for ones who use typescript with --strictNullChecks flag, it would be very useful to generate types nullable with union type.
For example, for a SQL nullable string, it would generate type
: string | null
, etc.I think it would be better to have this optional.
The text was updated successfully, but these errors were encountered: