Skip to content

Commit

Permalink
Merge pull request #20398 from Andarist/patch-1
Browse files Browse the repository at this point in the history
[BUGFIX LTS] Fix runloop types on TS 5.0+
  • Loading branch information
chriskrycho committed Mar 4, 2023
2 parents 25a933f + 2508749 commit f148ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ember/runloop/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type PartialParams<P extends any[]> = P extends [infer First, ...infer Rest]
: // This is necessary to handle optional tuple values
Required<P> extends [infer First, ...infer Rest]
? [] | [First | undefined] | [First | undefined, ...PartialParams<Partial<Rest>>]
: never;
: [];

type RemainingParams<PartialParams extends any[], All extends any[]> = PartialParams extends [
infer First,
Expand Down

0 comments on commit f148ec4

Please sign in to comment.