microsoft / microsoft/TypeScript

[DTS] Object literal method with bigint is omitted in generated `.d.ts`, but class method works correctly

Aperta
#61,769 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@johnfav03 ci sta già lavorando.

Dal 6/8/2025.

Bug Domain: Declaration Emit Help Wanted
Lingua principale
Go
Stelle
111k
Fork
14.3k
Merge medio
2g 4h
PR unite (30g)
132

Descrizione

### 🔎 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_

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.