microsoft / microsoft/TypeScript
[DTS] Object literal method with bigint is omitted in generated `.d.ts`, but class method works correctly
Đang mở
@johnfav03 đang làm issue này rồi.
Từ ngày 6/8/2025.
Bug
Domain: Declaration Emit
Help Wanted
- Ngôn ngữ chính
- Go
- Star
- 111k
- Fork
- 14.3k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 132
Mô tả
🔎 Search Terms
- dts
- bigint key
- object
- class
🕗 Version & Regression Information
- This changed between versions ______ and _______
- This changed in commit or PR _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______
⏯ Playground Link
💻 Code
export const foo = {
1n() {
return 1;
},
2() {
return 2;
}
}
export class Foo {
1n() {
return 1;
}
2() {
return 2;
}
}
🙁 Actual behavior
export declare const foo: {
2(): number;
};
export declare class Foo {
1n(): number;
2(): number;
}
🙂 Expected behavior
export declare const foo: {
1n(): number;
2(): number;
};
export declare class Foo {
1n(): number;
2(): number;
}
Additional information about the issue
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.