We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
// test.d.ts declare var S: typeof A; // error TS2448: Block-scoped variable 'A' used before its declaration. declare const A: number;
Errors make sense only in non-ambient context.
The text was updated successfully, but these errors were encountered:
I would argue there should not be an error here too:
var S: typeof A; const A: number;
We're not using A variable, we're using its type. And the type is known regardless of the order of the statements.
Sorry, something went wrong.
No branches or pull requests
Errors make sense only in non-ambient context.
The text was updated successfully, but these errors were encountered: