-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
Has PRarea: typescriptoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: types
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Has PRarea: typescriptoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issuepkg: types