Skip to content

Commit

Permalink
Add bug number and accept baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn committed Feb 25, 2021
1 parent 9f9825a commit 75449de
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
2 changes: 2 additions & 0 deletions tests/baselines/reference/importPropertyFromMappedType.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//// [tests/cases/compiler/importPropertyFromMappedType.ts] ////

//// [errors.d.ts]
// #42957

export = createHttpError;
declare const createHttpError: createHttpError.NamedConstructors;
declare namespace createHttpError {
Expand Down
16 changes: 9 additions & 7 deletions tests/baselines/reference/importPropertyFromMappedType.symbols
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
=== tests/cases/compiler/errors.d.ts ===
// #42957

export = createHttpError;
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))

declare const createHttpError: createHttpError.NamedConstructors;
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
>NamedConstructors : Symbol(createHttpError.NamedConstructors, Decl(errors.d.ts, 2, 35))
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))
>NamedConstructors : Symbol(createHttpError.NamedConstructors, Decl(errors.d.ts, 4, 35))

declare namespace createHttpError {
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 1, 13), Decl(errors.d.ts, 1, 65))
>createHttpError : Symbol(createHttpError, Decl(errors.d.ts, 3, 13), Decl(errors.d.ts, 3, 65))

type NamedConstructors = { [P in 'NotFound']: unknown;}
>NamedConstructors : Symbol(NamedConstructors, Decl(errors.d.ts, 2, 35))
>P : Symbol(P, Decl(errors.d.ts, 3, 33))
>NamedConstructors : Symbol(NamedConstructors, Decl(errors.d.ts, 4, 35))
>P : Symbol(P, Decl(errors.d.ts, 5, 33))
}

=== tests/cases/compiler/main.ts ===
Expand Down
2 changes: 2 additions & 0 deletions tests/baselines/reference/importPropertyFromMappedType.types
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
=== tests/cases/compiler/errors.d.ts ===
// #42957

export = createHttpError;
>createHttpError : createHttpError.NamedConstructors

Expand Down
2 changes: 1 addition & 1 deletion tests/cases/compiler/importPropertyFromMappedType.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// #
// #42957

// @filename: errors.d.ts
export = createHttpError;
Expand Down

0 comments on commit 75449de

Please sign in to comment.