From 75449de4be06ef133cfbe427c43b138d1d6a9c5d Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 25 Feb 2021 15:23:55 -0800 Subject: [PATCH] Add bug number and accept baselines --- .../reference/importPropertyFromMappedType.js | 2 ++ .../importPropertyFromMappedType.symbols | 16 +++++++++------- .../reference/importPropertyFromMappedType.types | 2 ++ .../compiler/importPropertyFromMappedType.ts | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/importPropertyFromMappedType.js b/tests/baselines/reference/importPropertyFromMappedType.js index ec31897f0f20b..37ff26b16304f 100644 --- a/tests/baselines/reference/importPropertyFromMappedType.js +++ b/tests/baselines/reference/importPropertyFromMappedType.js @@ -1,6 +1,8 @@ //// [tests/cases/compiler/importPropertyFromMappedType.ts] //// //// [errors.d.ts] +// #42957 + export = createHttpError; declare const createHttpError: createHttpError.NamedConstructors; declare namespace createHttpError { diff --git a/tests/baselines/reference/importPropertyFromMappedType.symbols b/tests/baselines/reference/importPropertyFromMappedType.symbols index 2b847049346d3..224ee8e4c6e77 100644 --- a/tests/baselines/reference/importPropertyFromMappedType.symbols +++ b/tests/baselines/reference/importPropertyFromMappedType.symbols @@ -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 === diff --git a/tests/baselines/reference/importPropertyFromMappedType.types b/tests/baselines/reference/importPropertyFromMappedType.types index 7cd7b0278aa92..efc06ad38e4a0 100644 --- a/tests/baselines/reference/importPropertyFromMappedType.types +++ b/tests/baselines/reference/importPropertyFromMappedType.types @@ -1,4 +1,6 @@ === tests/cases/compiler/errors.d.ts === +// #42957 + export = createHttpError; >createHttpError : createHttpError.NamedConstructors diff --git a/tests/cases/compiler/importPropertyFromMappedType.ts b/tests/cases/compiler/importPropertyFromMappedType.ts index ad80aba2d0a50..1c850b9a448bd 100644 --- a/tests/cases/compiler/importPropertyFromMappedType.ts +++ b/tests/cases/compiler/importPropertyFromMappedType.ts @@ -1,4 +1,4 @@ -// # +// #42957 // @filename: errors.d.ts export = createHttpError;