mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: fix
This commit is contained in:
13 files changed
+14
-15
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user