mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Don’t issue used-before-initialization errors in declaration files (#32579)
This commit is contained in:
@@ -20700,7 +20700,7 @@ namespace ts {
|
||||
|
||||
function checkPropertyNotUsedBeforeDeclaration(prop: Symbol, node: PropertyAccessExpression | QualifiedName, right: Identifier): void {
|
||||
const { valueDeclaration } = prop;
|
||||
if (!valueDeclaration) {
|
||||
if (!valueDeclaration || getSourceFileOfNode(node).isDeclarationFile) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user