0.1.3 #5

Merged
Thilawyn merged 104 commits from next into master 2025-03-11 01:44:38 +01:00
Showing only changes of commit be79d24d6e - Show all commits

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)