AdaskoTheBeAsT / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
62 stars 12 forks source link

Fixed IsDate property for nullable DateTime and DateTimeOffset #32

Closed ArtemDintecom closed 1 year ago

ArtemDintecom commented 1 year ago

This fix is ​​needed to make the following code work again:

if (p.Type.IsDate) {
    if (p.Type.IsNullable) {
        ...
    }
}

Also, instead of name, encodeURIComponent(String({name})) will now be generated again for DateTime?.

AdaskoTheBeAsT commented 1 year ago

hi thanks a lot for finding and fix! I will release this on weekend