Skip to content

Value properties #2763

Closed
Closed
@MrMatthewLayton

Description

@MrMatthewLayton

TypeScript currently supports accessor (get/set) properties, but ECMAScript 5 also allows value properties to be defined.

Object.defineProperty(o, p, { value: n, enumerable: true, configurable: false });

Will TypeScript be able to implement value properties in future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Out of ScopeThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions