add scope to public getters (#1169)
This commit is contained in:
Родитель
fd54f68e39
Коммит
5a3d4926d6
|
@ -483,6 +483,10 @@ export class ContainerRuntime extends EventEmitter implements IHostRuntime, IRun
|
|||
return this._flushMode;
|
||||
}
|
||||
|
||||
public get scope(): IComponent {
|
||||
return this.context.scope;
|
||||
}
|
||||
|
||||
public get IComponentRegistry(): IComponentRegistry {
|
||||
return this.registry;
|
||||
}
|
||||
|
|
|
@ -332,6 +332,7 @@ export interface IHostRuntime extends
|
|||
readonly submitSignalFn: (contents: any) => void;
|
||||
readonly snapshotFn: (message: string) => Promise<void>;
|
||||
readonly closeFn: () => void;
|
||||
readonly scope: IComponent;
|
||||
|
||||
/**
|
||||
* Returns the runtime of the component.
|
||||
|
|
Загрузка…
Ссылка в новой задаче