You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Completion does not work for generic type extending tuple or array of all partial type #63785
In each example, type com... and check whether it is auto-completed.
Issue
// All partial type workstypeAllPartialObject={component?: string}declarefunctionextendTheme1<Extensionsextends[AllPartialObject]>(extensions: Extensions): voidextendTheme1([{/* Can autocomplete `component` here */},])// But all partial type with mapped types doesn't workdeclarefunctionextendTheme2<Extensionsextends[AllPartialObject&Record<string,unknown>],>(extensions: Extensions): voidextendTheme2([{/* Can't autocomplete `component` here */},])// with required field workstypePartialWithRequiredObject={component?: stringrequiredField: string}declarefunctionextendTheme3<Extensionsextends[PartialWithRequiredObject&Record<string,unknown>],>(extensions: Extensions): voidextendTheme3([{/* Can autocomplete `component` here */},])// but with required field and complete required field doesn't workextendTheme3([{requiredField: 'foo',/* Can't autocomplete `component` here */},])// also BaseTheme with no mapped types doesn't work toodeclarefunctionextendTheme4<Extensionsextends[PartialWithRequiredObject]>(extensions: Extensions): ExtensionsextendTheme4([{requiredField: 'foo',/* Can't autocomplete `component` here */},])// no extend tuple worksdeclarefunctionextendTheme5<ExtensionsextendsAllPartialObject&Record<string,unknown>,>(extensions: [Extensions]): ExtensionsextendTheme5([{/* Can autocomplete `component` here */},])
Activity