Closed tmtron closed 2 years ago
Did you end up fixing this?
@synerp No. As a workaround I've set "noImplicitOverride": false
in tsconfig.json
until this is fixed
@tmtron have you tried this option?
config: addExplicitOverride: true
@synerp Thanks, that works. I was not aware of this config option.
After enabling the addExplicitOverride
config option of typescript-apollo-angular plugin generated code also works when noImplicitOverride
is true
.
I've added the config at the plugin-level of my codegen.yml
generates:
./libs/`XXX/generated.ts:
plugins:
- typescript
- typescript-operations
- typescript-apollo-angular:
addExplicitOverride: true
Describe the bug
The generated code does not compile:
TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'Mutation<ConfigUpsertMutation, Exact<{ data: ConfigCreateInput; }>>'.
This happens because the
document
property in the generated Mutation overrides the document property of the parentApollo.Mutation
classTo Reproduce
in
tsconfig.json
set"noImplicitOverride": true
Expected behavior
should compile
Environment: