Skip to content

[TS] initialized static readonly fields cause compile time errors when using TS 3.0 or earlier #3406

@dclaux

Description

@dclaux

Platform and version

  • TypeScript, any version

Details

TypeScript 3.1 introduced a breaking change in the way d.ts files are generated when it comes to static readonly fields on classes. Details here: https://twitter.com/bterlson/status/1059590186550476800?lang=en

This causes compile time issues for host apps that use TS 3.0 or earlier.

Metadata

Metadata

Assignees

Labels

BugPlatform-JavaScriptBugs or features related to the JavaScript renderer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions