diff --git a/tests/baselines/reference/checkJsdocTypeTag1.types b/tests/baselines/reference/checkJsdocTypeTag1.types index ad8a365d687..a0c0c53cfeb 100644 --- a/tests/baselines/reference/checkJsdocTypeTag1.types +++ b/tests/baselines/reference/checkJsdocTypeTag1.types @@ -91,12 +91,12 @@ x2(0); */ var props = {}; >props : any ->{} : { [x: string]: any; } +>{} : {} /** * @type {Object} */ var props = {}; >props : any ->{} : { [x: string]: any; } +>{} : {} diff --git a/tests/baselines/reference/moduleExportAlias.types b/tests/baselines/reference/moduleExportAlias.types index 189c8c0f401..b1eedf8c2ab 100644 --- a/tests/baselines/reference/moduleExportAlias.types +++ b/tests/baselines/reference/moduleExportAlias.types @@ -206,19 +206,19 @@ multipleDeclarationAlias4.func8 = function () { }; >function () { } : () => void var multipleDeclarationAlias5 = module.exports = exports = {}; ->multipleDeclarationAlias5 : { [x: string]: any; } ->module.exports = exports = {} : { [x: string]: any; } +>multipleDeclarationAlias5 : {} +>module.exports = exports = {} : {} >module.exports : any >module : any >exports : any ->exports = {} : { [x: string]: any; } +>exports = {} : {} >exports : any ->{} : { [x: string]: any; } +>{} : {} multipleDeclarationAlias5.func9 = function () { }; >multipleDeclarationAlias5.func9 = function () { } : () => void >multipleDeclarationAlias5.func9 : any ->multipleDeclarationAlias5 : { [x: string]: any; } +>multipleDeclarationAlias5 : {} >func9 : any >function () { } : () => void @@ -240,15 +240,15 @@ multipleDeclarationAlias6.func10 = function () { }; >function () { } : () => void exports = module.exports = someOtherVariable = {}; ->exports = module.exports = someOtherVariable = {} : { [x: string]: any; } +>exports = module.exports = someOtherVariable = {} : {} >exports : any ->module.exports = someOtherVariable = {} : { [x: string]: any; } +>module.exports = someOtherVariable = {} : {} >module.exports : any >module : any >exports : any ->someOtherVariable = {} : { [x: string]: any; } +>someOtherVariable = {} : {} >someOtherVariable : any ->{} : { [x: string]: any; } +>{} : {} exports.func11 = function () { }; >exports.func11 = function () { } : () => void @@ -267,15 +267,15 @@ module.exports.func12 = function () { }; >function () { } : () => void exports = module.exports = someOtherVariable = {}; ->exports = module.exports = someOtherVariable = {} : { [x: string]: any; } +>exports = module.exports = someOtherVariable = {} : {} >exports : any ->module.exports = someOtherVariable = {} : { [x: string]: any; } +>module.exports = someOtherVariable = {} : {} >module.exports : any >module : any >exports : any ->someOtherVariable = {} : { [x: string]: any; } +>someOtherVariable = {} : {} >someOtherVariable : any ->{} : { [x: string]: any; } +>{} : {} exports.func11 = function () { }; >exports.func11 = function () { } : () => void @@ -344,13 +344,13 @@ module.exports.func16 = function () { }; >function () { } : () => void module.exports = exports = {}; ->module.exports = exports = {} : { [x: string]: any; } +>module.exports = exports = {} : {} >module.exports : any >module : any >exports : any ->exports = {} : { [x: string]: any; } +>exports = {} : {} >exports : any ->{} : { [x: string]: any; } +>{} : {} exports.func17 = function () { }; >exports.func17 = function () { } : () => void diff --git a/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts b/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts index 29dcc2a5048..b7bca4e0712 100644 --- a/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts +++ b/tests/cases/fourslash/codeFixUndeclaredAcrossFiles1.ts @@ -23,7 +23,7 @@ verify.getAndApplyCodeFix(/*errorCode*/undefined, 0); verify.getAndApplyCodeFix(/*errorCode*/undefined, 0); verify.rangeIs(` - y: { [x: string]: any; }; + y: {}; m1(): any { throw new Error("Method not implemented."); }