|
| 1 | +=== tests/cases/compiler/errors.d.ts === |
| 2 | +// #42957 |
| 3 | + |
| 4 | +export = createHttpError; |
| 5 | +>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65)) |
| 6 | + |
| 7 | +declare const createHttpError: createHttpError.NamedConstructors; |
| 8 | +>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65)) |
| 9 | +>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65)) |
| 10 | +>NamedConstructors : Symbol(createHttpError.NamedConstructors, Decl(errors.d.ts, 4, 35)) |
| 11 | + |
| 12 | +declare namespace createHttpError { |
| 13 | +>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65)) |
| 14 | + |
| 15 | + type NamedConstructors = { [P in 'NotFound']: unknown;} |
| 16 | +>NamedConstructors : Symbol(NamedConstructors, Decl(errors.d.ts, 4, 35)) |
| 17 | +>P : Symbol(P, Decl(errors.d.ts, 5, 33)) |
| 18 | +} |
| 19 | + |
| 20 | +=== tests/cases/compiler/main.ts === |
| 21 | +import { NotFound } from './errors' |
| 22 | +>NotFound : Symbol(NotFound, Decl(main.ts, 0, 8)) |
| 23 | + |
0 commit comments