workspace: fix

This commit is contained in:
undefined committed 2025-02-21 05:46:11 +08:00
1 parent 2829a5965b
commit 4931ad43da
13 files changed
+14 -15

No files matched your search

+1 -6
View File
@@ -11,13 +11,8 @@ export interface Context {
}
export class Context extends cordis.Context { }
export type MainScope = cordis.MainScope<Context>;
export type EffectScope = cordis.EffectScope<Context>;
export type ForkScope = cordis.ForkScope<Context>;
export abstract class Service<T = any, C extends Context = Context> extends cordis.Service<T, C> {
[cordis.Service.setup]() {
this.ctx = new Context() as C;
}
export class Service<C extends Context = Context> extends cordis.Service<C> {
}
export const ctx = new Context();