typescript-generator
typescript-generator copied to clipboard
missing override keyword when creating fromData method on inherited class
If a class A inherits class B, the resulting typescript classes will both have each a fromData method. However, A, must have the keyword is missing the "override" keyword in order to be syntactically correct typescript.
wrong:
static fromData(data: FooBar, target?: FooBar): FooBar {
correct:
static override fromData(data: FooBar, target?: FooBar): FooBar {
I have the same problem. I get exported
export class EditChapterDto extends ChapterDto<EditChapterDto> {
children: EditChapterDto[];
but I need to have
export class EditChapterDto extends ChapterDto<EditChapterDto> {
override children: EditChapterDto[];