Skip to content

super method not present in type declarations #10075

@jhpratt

Description

@jhpratt

Bug Report

Current Behavior
Calling t.super() results in a compile-time type error, as super isn't present in type definitions. It does exist in the documentation and works as expected after compilation.

Expected behavior
The super method should be present in the type definitions.

Babel Configuration (.babelrc, package.json, cli command)
Not applicable.

Environment

  • Babel version(s): v7.4.0
  • Node/npm version: Node 12.0.0, npm 6.9.0
  • OS: Ubuntu 19.04
  • Monorepo: no
  • How you are using Babel: CLI

As someone using TypeScript to minimize errors, the amount of casting is extremely verbose. By itself, that's not an issue, but coupled with errors in type definitions (this along with #10065) are forcing the use of unsafe casts and // @ts-ignore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions