mirror of
https://github.com/certd/certd.git
synced 2026-05-16 21:27:34 +08:00
refactor: pipeline edit view
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
export interface ServiceContext {
|
||||
get(name: string): any;
|
||||
register(name: string, service: any): void;
|
||||
}
|
||||
|
||||
export class ServiceContextImpl implements ServiceContext {
|
||||
register(name: string, service: any): void {}
|
||||
storage: {
|
||||
[key: string]: any;
|
||||
} = {};
|
||||
get(name: string): any {
|
||||
return this.storage[name];
|
||||
}
|
||||
}
|
||||
|
||||
export const serviceContext = new ServiceContextImpl();
|
||||
Reference in New Issue
Block a user