Generate the class without annoying error "Declarations with initializers cannot also have definite assignment assertions." and for number type generate a default value as Date.
Actual Behavior
Actualy when I generate a class, when a property in the schema has a default value, the generator create a class with error
export class item {
id!: string; // here for me is correct
description?: string;
value!: number = new Date('1');; // <- this is the problem, the ! and type of value (Date instead of number)
}
Expected Behavior
Generate the class without annoying error "Declarations with initializers cannot also have definite assignment assertions." and for number type generate a default value as Date.
Actual Behavior
Actualy when I generate a class, when a property in the schema has a default value, the generator create a class with error
Steps to Reproduce the Problem
With this schema
The generator create this class
Specifications