import ts from "typescript" ; export interface Params$Create { parameters ? : ts . ParameterDeclaration [ ] ; body ? : ts . Block ; } export interface Factory { create : ( params : Params$Create ) => ts . ConstructorDeclaration ; } export const create = ( { factory } ) : Factory [ "create" ] => ( params ) : ts . ConstructorDeclaration => { const node = factory . createConstructorDeclaration ( undefined , undefined , params . parameters || [ ] , params . body ) ; return node ; } ; export const make = ( context ) : Factory => { return { create : create ( context ) , } ; } ;