We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type Fill< T extends unknown[], N, Start extends number = 0, End extends number = T['length'], L extends 1[] = [], IsReplace extends boolean = false > = Start extends End ? T :T extends [infer Head, ...infer Rest] ? L['length'] extends Start ? [N, ...Fill<Rest, N, Start, End, [1,...L], true>] : L['length'] extends End ? [Head, ...Fill<Rest, N, Start, End, [1,...L], false>] : [(IsReplace extends true? N : Head), ...Fill<Rest, N, Start, End, [1, ...L], IsReplace>] : []
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: