When the `viewLoaded` message is received by the view, it will now retrieve the variant analysis from the manager and send it to the view. This will allow the view to display the variant analysis.
14 lines
411 B
TypeScript
14 lines
411 B
TypeScript
import { VariantAnalysis } from './shared/variant-analysis';
|
|
|
|
export interface VariantAnalysisViewInterface {
|
|
variantAnalysisId: number;
|
|
openView(): Promise<void>;
|
|
}
|
|
|
|
export interface VariantAnalysisViewManager<T extends VariantAnalysisViewInterface> {
|
|
registerView(view: T): void;
|
|
unregisterView(view: T): void;
|
|
|
|
getVariantAnalysis(variantAnalysisId: number): Promise<VariantAnalysis | undefined>;
|
|
}
|