2c5cee59f0
* 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
19 lines
407 B
TypeScript
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;
|