Skip to content

Commit 75449de

Browse files
committed
Add bug number and accept baselines
1 parent 9f9825a commit 75449de

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

tests/baselines/reference/importPropertyFromMappedType.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//// [tests/cases/compiler/importPropertyFromMappedType.ts] ////
22

33
//// [errors.d.ts]
4+
// #42957
5+
46
export = createHttpError;
57
declare const createHttpError: createHttpError.NamedConstructors;
68
declare namespace createHttpError {

tests/baselines/reference/importPropertyFromMappedType.symbols

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
=== tests/cases/compiler/errors.d.ts ===
2+
// #42957
3+
24
export = createHttpError;
3-
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
5+
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
46

57
declare const createHttpError: createHttpError.NamedConstructors;
6-
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
7-
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
8-
>NamedConstructors : Symbol(createHttpError.NamedConstructors, Decl(errors.d.ts, 2, 35))
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))
911

1012
declare namespace createHttpError {
11-
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
13+
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
1214

1315
type NamedConstructors = { [P in 'NotFound']: unknown;}
14-
>NamedConstructors : Symbol(NamedConstructors, Decl(errors.d.ts, 2, 35))
15-
>P : Symbol(P, Decl(errors.d.ts, 3, 33))
16+
>NamedConstructors : Symbol(NamedConstructors, Decl(errors.d.ts, 4, 35))
17+
>P : Symbol(P, Decl(errors.d.ts, 5, 33))
1618
}
1719

1820
=== tests/cases/compiler/main.ts ===

tests/baselines/reference/importPropertyFromMappedType.types

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
=== tests/cases/compiler/errors.d.ts ===
2+
// #42957
3+
24
export = createHttpError;
35
>createHttpError : createHttpError.NamedConstructors
46

tests/cases/compiler/importPropertyFromMappedType.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// #
1+
// #42957
22

33
// @filename: errors.d.ts
44
export = createHttpError;

0 commit comments

Comments
 (0)