import ts from "typescript" ; export interface Params$Create { typeParameters : readonly ts . TypeParameterDeclaration [ ] | undefined ; parameters : readonly ts . ParameterDeclaration [ ] ; type : ts . TypeNode ; } export interface Factory { create : ( params : Params$Create ) => ts . FunctionTypeNode ; } export const create = ( { factory } ) : Factory [ "create" ] => ( params ) : ts . FunctionTypeNode => { const node = factory . createFunctionTypeNode ( params . typeParameters , params . parameters , params . type ) ; return node ; } ; export const make = ( context ) : Factory => { return { create : create ( context ) , } ; } ;