Skip to content

spec for ParameterProperties is outdated #28395

Description

https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#831-constructor-parameters:

A parameter of a ConstructorImplementation may be prefixed with a public, private, or protected modifier.

This is missing readonly.

A parameter property declaration may declare an optional parameter (by including a question mark or a default value), but the property introduced by such a declaration is always considered a required property

This is no longer true since the (not so) recent rewrite of the declaration emitter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SpecIssues related to the TypeScript language specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions