microsoft/typescript-go

Definitely assign assertion preserved on field in declaration files

Closed this issue · 0 comments

Steps to reproduce

export class DbObject {
    id!: string;
}

Playground Link

Behavior with typescript@5.8

The ! is removed from declaration files

Behavior with tsgo

The ! is preserved in declaration files

export declare class DbObject {
    id!: string;
}