missing override keyword when creating fromData method on inherited class
alebo611 opened this issue · comments
alebo611 commented
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 {
leomayer commented
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[];