@reffuse/extension-query 0.1.5 #16
@@ -43,13 +43,11 @@ export const withContexts = <R2 extends Array<unknown>>(
|
|||||||
>
|
>
|
||||||
} &
|
} &
|
||||||
StaticType<BaseClass>
|
StaticType<BaseClass>
|
||||||
) => {
|
) => new self().pipe(
|
||||||
const instance = new self()
|
instance => class extends self {
|
||||||
|
|
||||||
return class extends self {
|
|
||||||
readonly contexts = [...instance.contexts, ...contexts] as const
|
readonly contexts = [...instance.contexts, ...contexts] as const
|
||||||
} as any
|
} as any
|
||||||
}
|
)
|
||||||
|
|
||||||
|
|
||||||
const withMyContext = withContexts(MyContext)
|
const withMyContext = withContexts(MyContext)
|
||||||
|
|||||||
Reference in New Issue
Block a user