Fix
Some checks failed
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2025-01-16 18:47:13 +01:00
parent 3c37808131
commit 7485f3468d

View File

@@ -197,9 +197,7 @@ export interface ScopeOptions {
}
export const make = <
const Contexts extends readonly (ReffuseContext.ReffuseContext<any> | ReffuseContext.ReffuseContext<never>)[]
>(
...contexts: Contexts
): Reffuse<{ [K in keyof Contexts]: ReffuseContext.R<Contexts[K]> }[number]> =>
export const make = <T extends Array<unknown>>(
...contexts: [...{ [K in keyof T]: ReffuseContext.ReffuseContext<T[K]> }]
): Reffuse<T[number]> =>
new Reffuse(contexts)