import ts from "typescript" ; export interface Params$Create { name : string ; constraint ? : ts . TypeNode ; defaultType ? : ts . TypeNode ; } export interface Factory { create : ( params : Params$Create ) => ts . TypeParameterDeclaration ; } export const create = ( { factory } ) : Factory [ "create" ] => ( params ) : ts . TypeParameterDeclaration => { const node = factory . createTypeParameterDeclaration ( factory . createIdentifier ( params . name ) , params . constraint , params . defaultType ) ; return node ; } ; export const make = ( context ) : Factory => { return { create : create ( context ) , } ; } ;