import ts from "typescript" ; export interface Params { typeNodes : ts . TypeNode [ ] ; } export interface Factory { create : ( params : Params ) => ts . IntersectionTypeNode ; } export const create = ( { factory } ) : Factory [ "create" ] => ( params ) : ts . IntersectionTypeNode => { const node = factory . createIntersectionTypeNode ( params . typeNodes ) ; return node ; } ; export const make = ( context ) : Factory => { return { create : create ( context ) , } ; } ;