Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions tests/baselines/reference/inlayHintsTupleParameter.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// === Inlay Hints ===
tuples.forEach((t) => {})
^
{
"text": "callbackfn:",
"position": 72,
"kind": "Parameter",
"whitespaceAfter": true
}

tuples.forEach((t) => {})
^
{
"text": ": [string, string]",
"position": 74,
"kind": "Type",
"whitespaceBefore": true
}
11 changes: 11 additions & 0 deletions tests/cases/fourslash/inlayHintsTupleParameter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/// <reference path="fourslash.ts" />

//// function iterateTuples(tuples: [string, string][]) {
//// tuples.forEach((t) => {})
//// }

verify.baselineInlayHints(undefined, {
includeInlayVariableTypeHints: true,
includeInlayParameterNameHints: "all",
includeInlayFunctionParameterTypeHints: true,
});