Skip to content
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

Error when parsing eval in .d.ts #16542

Closed
liuxingbaoyu opened this issue Jun 1, 2024 · 1 comment · Fixed by #16567
Closed

Error when parsing eval in .d.ts #16542

liuxingbaoyu opened this issue Jun 1, 2024 · 1 comment · Fixed by #16567

Comments

@liuxingbaoyu
Copy link
Member

This should not throw an error.

// @filename: /a.d.ts
declare global {
    export namespace ns {
        export function eval(): void;
        export function arguments(): void;
    }
}

declare function eval(): void;
declare function arguments(): void;

export {}

https://astexplorer.net/#/gist/edd804e82dbf0359133afe706554573d/3b3bd2dc894b4b12efcf40ef96e35b0d6d174cbe

I discovered it while updating our typescript testing repo.

@liuxingbaoyu
Copy link
Member Author

Oh! This is not a bug, this is a change introduced in ts 5.5.

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

Successfully merging a pull request may close this issue.

1 participant