import * as ko from "knockout" ; import { TabDesignerViewModel } from "@survey/creator" ; import { ImplementorBase , Survey } from "survey-knockout-ui" ; const template = require ( "./designer.html" ) ; ko . components . register ( "svc-tab-designer" , { viewModel : { createViewModel : ( params ) => { const model = < TabDesignerViewModel < Survey > > params . data . model ; new ImplementorBase ( model ) ; return model ; } } , template : template } ) ;