Skip to content

Renaming NumericLiteral to NumberLiteral? #3104

Closed
@jbondc

Description

@jbondc

There's currently a NumericLiteral:
https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts#L23

And a numberIndex:
https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts#L1507

I'm trying to add:

    export interface NumberSetType extends Type  {
        start: number;
        end: number;
        /* @internal */
        sparseValues?: number[];
    }

Should this be called a NumericSetType?

My preference would be to rename NumericLiteral to NumberLiteral, and keeping NumericLiteral as backwards compat. Is that too much of a big change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions