microsoft / microsoft/TypeScript
[DTS] Object literal method with bigint is omitted in generated `.d.ts`, but class method works correctly
@johnfav03 がすでに取り組んでいます。
2025年8月6日 から。
- 主要言語
- Go
- スター
- 111k
- フォーク
- 14.3k
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 132
説明
### 🔎 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
https://www.typescriptlang.org/play/?#code/KYDwDg9gTgLgBAYwgOwM7wGYQnAvHAbwCg5S4BGZACgEpCSzGpgYBXKZCgbgdIF8ANLzgAmWvUZMW7TiJ6M+RRUVCRYiADYBDVKjgAxbBLKVxxSWWZsO3YYsZi65i3CszR8sor5A
### 💻 Code
```TypeScript
export const foo = {
1n() {
return 1;
},
2() {
return 2;
}
}
export class Foo {
1n() {
return 1;
}
2() {
return 2;
}
}
```
### 🙁 Actual behavior
```TypeScript
export declare const foo: {
2(): number;
};
export declare class Foo {
1n(): number;
2(): number;
}
```
### 🙂 Expected behavior
```TypeScript
export declare const foo: {
1n(): number;
2(): number;
};
export declare class Foo {
1n(): number;
2(): number;
}
```
### Additional information about the issue
_No response_
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。