I waited long time to update the servicestack version. 5.6 to 5.10.
I am also using typescript-ref for generating a dto in our vue js application.
However there are some changes, which I am looking for options to ‘revert’.
- it seems that nullable types are now generated as
public startDate: string->
public startDate?: string
- I had an enum named
Typewhich is now generated as
export enum Type->
export enum string
- enums are now generated with their int values instead of string.
Delivered = 'Delivered'->
Delivered = 0
So now I have a lot of errors/warnings in my Typescript (including
Type 'undefined' is not assignable to type 'string'. for the nullable types). And of course the complete wrongly generated
Is there a way to rollback this generation without rolling back the 5.10 on the server? With options defined in the dtos.ts ?