import { ApplicationWindow } from '@main/application-window' ; import { FrameworkOptions , IFramework } from './framework' ; import { getFrameworkByType } from '@lib/frameworks' ; export class FrameworkFactory { param window param options public static make ( window , options ) { const Framework = getFrameworkByType ( options . type ) ; if ( Framework ) { return new Framework ( window , Framework . hydrate ( options ) ) ; } throw new Error ( `Unknown framework type "${ options . type }"` ) ; } }