Microsoft/TypeScript
GitHub ã§èŠãInlay parameter hints don't account for trailing required parameters
Open
#59,979 opened on 2024幎9æ16æ¥
7.0 LS MigrationBugDomain: LS: Inlay HintsHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
inlay hints parameters rest spread argument
ð Version & Regression Information
- This is the behavior in every version I tried
⯠Playground Link
N/A
ð» Code
/// <reference path="fourslash.ts" />
//// function test(...rest: [first: number, ...middle: string[], last: string]) {}
//// test(10, 'a', 'b', 'c')
verify.baselineInlayHints(undefined, {
includeInlayParameterNameHints: "all",
includeInlayFunctionParameterTypeHints: true,
});
ð Actual behavior
function test(...rest: [first: number, ...middle: string[], last: string]) {}
test(/* first: */10, /* ...middle: */'a', /* last: */'b', 'c')
ð Expected behavior
function test(...rest: [first: number, ...middle: string[], last: string]) {}
test(/* first: */10, /* ...middle: */'a', 'b', /* last: */'c')
Additional information about the issue
No response