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
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)
}
Specifications
Version: 0.2.9
Prisma Version: 5.3.0
Platform: windows10
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: