Skip to content

d.ts content different with tsc #989

@futurist

Description

@futurist

with below code:

export class X {
	static readonly ID = 'XXX';
}

generated d.ts file with below different:

  • tsc
export declare class X {
	static readonly ID = 'XXX';
}
  • tsgo
export declare class X {
	static readonly ID: string;
}

version: @typescript/native-preview@7.0.0-dev.20250530.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions