We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
global shadowed declarations
Playground Link
// @strict: true // @declaration: true // @target: es2020 // @filename: a.ts export const o = {[Symbol.iterator]: 1} // @filename: b.ts import { o } from "./a"; export class Symbol { } export const g = o;
The typeof of g is { [Symbol.iterator]: number; }. This leads to an incorrect declaration since Symbol is shadowed in the current scope
g
{ [Symbol.iterator]: number; }
Symbol
The typeof of g is { [globalThis.Symbol.iterator]: number; }.
{ [globalThis.Symbol.iterator]: number; }
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
π Search Terms
global shadowed declarations
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
The typeof of
g
is{ [Symbol.iterator]: number; }
. This leads to an incorrect declaration sinceSymbol
is shadowed in the current scopeπ Expected behavior
The typeof of
g
is{ [globalThis.Symbol.iterator]: number; }
.Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: