Open AsFal opened 4 years ago
Ex: atlas generate model another --fields name=string,friends=string[] Output:
atlas generate model another --fields name=string,friends=string[]
In databse/interactions/new.ts
create: (new: INew): Promise<INewModel> => { return New.create(new); },
Illegal use of the "new" keyword on line 2.
The problem can be generalized to other keywords (i.e. this, return, from, etc.)
Be wary of typescript special interfaces (Partial, Omit, etc.)
Problem
Ex:
atlas generate model another --fields name=string,friends=string[]
Output:In databse/interactions/new.ts
Illegal use of the "new" keyword on line 2.
Note
The problem can be generalized to other keywords (i.e. this, return, from, etc.)
Be wary of typescript special interfaces (Partial, Omit, etc.)