Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
magic-akari opened this issue May 27, 2025 · 0 comments

Comments

@magic-akari
Copy link
Contributor

🔎 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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy