Skip to content

Property 'inherited' does not exist on type <...> #144

Description

@remag9330

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:

    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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions