-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🤖 Pick PR #60083 (Don't issue implicit any when obtai...) into releas…
…e-5.6 (#60086) Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
- Loading branch information
1 parent
ff71692
commit fefa70a
Showing
12 changed files
with
863 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
tests/baselines/reference/destructuringParameterDeclaration10(strict=false).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration10.ts] //// | ||
|
||
=== destructuringParameterDeclaration10.ts === | ||
export function prepareConfig({ | ||
>prepareConfig : Symbol(prepareConfig, Decl(destructuringParameterDeclaration10.ts, 0, 0)) | ||
|
||
additionalFiles: { | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 4, 4)) | ||
|
||
json = [] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 1, 22)) | ||
|
||
} = {} | ||
}: { | ||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 4, 4)) | ||
>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) | ||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) | ||
|
||
} = {}) { | ||
json // string[] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 1, 22)) | ||
} | ||
|
||
export function prepareConfigWithoutAnnotation({ | ||
>prepareConfigWithoutAnnotation : Symbol(prepareConfigWithoutAnnotation, Decl(destructuringParameterDeclaration10.ts, 8, 1)) | ||
|
||
additionalFiles: { | ||
>additionalFiles : Symbol(additionalFiles) | ||
|
||
json = [] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 11, 22)) | ||
|
||
} = {} | ||
} = {}) { | ||
json | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 11, 22)) | ||
} | ||
|
||
export const prepareConfigWithContextualSignature: (param:{ | ||
>prepareConfigWithContextualSignature : Symbol(prepareConfigWithContextualSignature, Decl(destructuringParameterDeclaration10.ts, 18, 12)) | ||
>param : Symbol(param, Decl(destructuringParameterDeclaration10.ts, 18, 52)) | ||
|
||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 18, 59)) | ||
>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) | ||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) | ||
|
||
}) => void = ({ | ||
additionalFiles: { | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 18, 59)) | ||
|
||
json = [] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 21, 22)) | ||
|
||
} = {} | ||
} = {}) => { | ||
json // string[] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 21, 22)) | ||
} | ||
|
99 changes: 99 additions & 0 deletions
99
tests/baselines/reference/destructuringParameterDeclaration10(strict=false).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration10.ts] //// | ||
|
||
=== destructuringParameterDeclaration10.ts === | ||
export function prepareConfig({ | ||
>prepareConfig : ({ additionalFiles: { json } }?: { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; }) => void | ||
> : ^ ^^^ ^^^^^^^^^ | ||
|
||
additionalFiles: { | ||
>additionalFiles : any | ||
> : ^^^ | ||
|
||
json = [] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
>[] : undefined[] | ||
> : ^^^^^^^^^^^ | ||
|
||
} = {} | ||
>{} : {} | ||
> : ^^ | ||
|
||
}: { | ||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Partial<Record<"json" | "jsonc" | "json5", string[]>> | ||
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
} = {}) { | ||
>{} : {} | ||
> : ^^ | ||
|
||
json // string[] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
} | ||
|
||
export function prepareConfigWithoutAnnotation({ | ||
>prepareConfigWithoutAnnotation : ({ additionalFiles: { json } }?: { additionalFiles?: { json?: any[]; }; }) => void | ||
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
additionalFiles: { | ||
>additionalFiles : any | ||
> : ^^^ | ||
|
||
json = [] | ||
>json : any[] | ||
> : ^^^^^ | ||
>[] : undefined[] | ||
> : ^^^^^^^^^^^ | ||
|
||
} = {} | ||
>{} : {} | ||
> : ^^ | ||
|
||
} = {}) { | ||
>{} : {} | ||
> : ^^ | ||
|
||
json | ||
>json : any[] | ||
> : ^^^^^ | ||
} | ||
|
||
export const prepareConfigWithContextualSignature: (param:{ | ||
>prepareConfigWithContextualSignature : (param: { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; }) => void | ||
> : ^ ^^ ^^^^^ | ||
>param : { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; } | ||
> : ^^^^^^^^^^^^^^^^^^^^ ^^^ | ||
|
||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Partial<Record<"json" | "jsonc" | "json5", string[]>> | ||
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
}) => void = ({ | ||
>({ additionalFiles: { json = [] } = {}} = {}) => { json // string[]} : ({ additionalFiles: { json } }?: { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; }) => void | ||
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ | ||
|
||
additionalFiles: { | ||
>additionalFiles : any | ||
> : ^^^ | ||
|
||
json = [] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
>[] : undefined[] | ||
> : ^^^^^^^^^^^ | ||
|
||
} = {} | ||
>{} : {} | ||
> : ^^ | ||
|
||
} = {}) => { | ||
>{} : {} | ||
> : ^^ | ||
|
||
json // string[] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
} | ||
|
61 changes: 61 additions & 0 deletions
61
tests/baselines/reference/destructuringParameterDeclaration10(strict=true).symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration10.ts] //// | ||
|
||
=== destructuringParameterDeclaration10.ts === | ||
export function prepareConfig({ | ||
>prepareConfig : Symbol(prepareConfig, Decl(destructuringParameterDeclaration10.ts, 0, 0)) | ||
|
||
additionalFiles: { | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 4, 4)) | ||
|
||
json = [] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 1, 22)) | ||
|
||
} = {} | ||
}: { | ||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 4, 4)) | ||
>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) | ||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) | ||
|
||
} = {}) { | ||
json // string[] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 1, 22)) | ||
} | ||
|
||
export function prepareConfigWithoutAnnotation({ | ||
>prepareConfigWithoutAnnotation : Symbol(prepareConfigWithoutAnnotation, Decl(destructuringParameterDeclaration10.ts, 8, 1)) | ||
|
||
additionalFiles: { | ||
>additionalFiles : Symbol(additionalFiles) | ||
|
||
json = [] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 11, 22)) | ||
|
||
} = {} | ||
} = {}) { | ||
json | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 11, 22)) | ||
} | ||
|
||
export const prepareConfigWithContextualSignature: (param:{ | ||
>prepareConfigWithContextualSignature : Symbol(prepareConfigWithContextualSignature, Decl(destructuringParameterDeclaration10.ts, 18, 12)) | ||
>param : Symbol(param, Decl(destructuringParameterDeclaration10.ts, 18, 52)) | ||
|
||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 18, 59)) | ||
>Partial : Symbol(Partial, Decl(lib.es5.d.ts, --, --)) | ||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) | ||
|
||
}) => void = ({ | ||
additionalFiles: { | ||
>additionalFiles : Symbol(additionalFiles, Decl(destructuringParameterDeclaration10.ts, 18, 59)) | ||
|
||
json = [] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 21, 22)) | ||
|
||
} = {} | ||
} = {}) => { | ||
json // string[] | ||
>json : Symbol(json, Decl(destructuringParameterDeclaration10.ts, 21, 22)) | ||
} | ||
|
99 changes: 99 additions & 0 deletions
99
tests/baselines/reference/destructuringParameterDeclaration10(strict=true).types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
//// [tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration10.ts] //// | ||
|
||
=== destructuringParameterDeclaration10.ts === | ||
export function prepareConfig({ | ||
>prepareConfig : ({ additionalFiles: { json } }?: { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; }) => void | ||
> : ^ ^^^ ^^^^^^^^^ | ||
|
||
additionalFiles: { | ||
>additionalFiles : any | ||
> : ^^^ | ||
|
||
json = [] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
>[] : never[] | ||
> : ^^^^^^^ | ||
|
||
} = {} | ||
>{} : {} | ||
> : ^^ | ||
|
||
}: { | ||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Partial<Record<"json" | "jsonc" | "json5", string[]>> | undefined | ||
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
} = {}) { | ||
>{} : {} | ||
> : ^^ | ||
|
||
json // string[] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
} | ||
|
||
export function prepareConfigWithoutAnnotation({ | ||
>prepareConfigWithoutAnnotation : ({ additionalFiles: { json } }?: { additionalFiles?: { json?: never[] | undefined; } | undefined; }) => void | ||
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
additionalFiles: { | ||
>additionalFiles : any | ||
> : ^^^ | ||
|
||
json = [] | ||
>json : never[] | ||
> : ^^^^^^^ | ||
>[] : never[] | ||
> : ^^^^^^^ | ||
|
||
} = {} | ||
>{} : {} | ||
> : ^^ | ||
|
||
} = {}) { | ||
>{} : {} | ||
> : ^^ | ||
|
||
json | ||
>json : never[] | ||
> : ^^^^^^^ | ||
} | ||
|
||
export const prepareConfigWithContextualSignature: (param:{ | ||
>prepareConfigWithContextualSignature : (param: { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; }) => void | ||
> : ^ ^^ ^^^^^ | ||
>param : { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; } | ||
> : ^^^^^^^^^^^^^^^^^^^^ ^^^ | ||
|
||
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; | ||
>additionalFiles : Partial<Record<"json" | "jsonc" | "json5", string[]>> | undefined | ||
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
}) => void = ({ | ||
>({ additionalFiles: { json = [] } = {}} = {}) => { json // string[]} : ({ additionalFiles: { json } }?: { additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>; }) => void | ||
> : ^ ^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ | ||
|
||
additionalFiles: { | ||
>additionalFiles : any | ||
> : ^^^ | ||
|
||
json = [] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
>[] : never[] | ||
> : ^^^^^^^ | ||
|
||
} = {} | ||
>{} : {} | ||
> : ^^ | ||
|
||
} = {}) => { | ||
>{} : {} | ||
> : ^^ | ||
|
||
json // string[] | ||
>json : string[] | ||
> : ^^^^^^^^ | ||
} | ||
|
Oops, something went wrong.