Property 'inherited' does not exist on type <...>
- Dominant language
- TypeScript
- Stars
- 29
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm looking into seeing if I can convert an existing Dojo project to TypeScript using these typings and I'm having trouble calling `this.inherited(arguments)` in classes that I am declaring.
To reproduce, simply add the following to the Dialog class definition in the example/basicApp project:
```javascript
destroy() {
this.inherited(arguments);
}
```
which gives the error "src/app/Dialog.ts(24,8): error TS2339: Property 'inherited' does not exist on type 'Dialog'" rather than just working.
Is there a different way to call the base classes method from an inheriting class? I can't seem to find any references of how to do this in the repository.
```
tsc --version
Version 2.6.2
```
Thanks in advance
Contributor guide
Research direction
Reproduce the report in the example/basicApp project by adding the shown destroy() method to src/app/Dialog.ts and running tsc with TypeScript 2.6.2. Read the Dialog class typings and its inherited-class definitions to determine whether the base-class call is represented; done means the example type-checks or the supported alternative is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100