diff --git a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.errors.txt b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.errors.txt index d6eaa158e74..d7bcfc4950c 100644 --- a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.errors.txt +++ b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.errors.txt @@ -1,10 +1,10 @@ -tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts(1,15): error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. +tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts(1,15): error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. ==== tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts (1 errors) ==== type F = ({a: string}) => void; ~~~~~~ -!!! error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. +!!! error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. const f = ({a: string}) => string; \ No newline at end of file diff --git a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.types b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.types index 7396a7c96a4..013797280e3 100644 --- a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.types +++ b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType.types @@ -1,6 +1,6 @@ === tests/cases/compiler/renamingDestructuredPropertyInFunctionType.ts === type F = ({a: string}) => void; ->F : F +>F : ({ a }: { a: any; }) => void >a : any >string : any diff --git a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.errors.txt b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.errors.txt index 9817532b13a..a99d3c29542 100644 --- a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.errors.txt +++ b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.errors.txt @@ -1,11 +1,11 @@ -tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts(1,15): error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. +tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts(1,15): error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts(3,16): error TS7031: Binding element 'string' implicitly has an 'any' type. ==== tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts (2 errors) ==== type F = ({a: string}) => void; ~~~~~~ -!!! error TS2797: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. +!!! error TS2842: Renaming a property in destructuring assignment is only allowed in a function or constructor implementation. const f = ({a: string}) => string; ~~~~~~ diff --git a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.types b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.types index 0ec5f3a0d13..46bae2330b1 100644 --- a/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.types +++ b/tests/baselines/reference/renamingDestructuredPropertyInFunctionType2.types @@ -1,6 +1,6 @@ === tests/cases/compiler/renamingDestructuredPropertyInFunctionType2.ts === type F = ({a: string}) => void; ->F : F +>F : ({ a }: { a: any; }) => void >a : any >string : any