Tests
Some checks failed
Lint / lint (push) Failing after 11s

This commit is contained in:
Julien Valverdé
2025-02-22 01:03:15 +01:00
parent e1349e5e03
commit be79d24d6e

View File

@@ -43,13 +43,11 @@ export const withContexts = <R2 extends Array<unknown>>(
>
} &
StaticType<BaseClass>
) => {
const instance = new self()
return class extends self {
) => new self().pipe(
instance => class extends self {
readonly contexts = [...instance.contexts, ...contexts] as const
} as any
}
)
const withMyContext = withContexts(MyContext)