TypeScript/tests/baselines/reference/importPropertyFromMappedType.js
Nathan Shively-Sanders 2c5cee59f0
Fix: checkAliasSymbol crash when checking for @deprecated (#42971)
* Fix: checkAliasSymbol crash when checking for @deprecated

It's possible that we shouldn't be creating symbol with no declarations
from non-homomorphic mapped types, but for 4.2, the right fix is to make
the @deprecated-check in checkAliasSymbol ensure that
target.declarations is defined.

* Add bug number and accept baselines
2021-02-25 16:26:16 -08:00

19 lines
407 B
TypeScript

//// [tests/cases/compiler/importPropertyFromMappedType.ts] ////
//// [errors.d.ts]
// #42957
export = createHttpError;
declare const createHttpError: createHttpError.NamedConstructors;
declare namespace createHttpError {
type NamedConstructors = { [P in 'NotFound']: unknown;}
}
//// [main.ts]
import { NotFound } from './errors'
//// [main.js]
"use strict";
exports.__esModule = true;