import ts from "typescript" ; export interface Params { properties : ts . ObjectLiteralElementLike [ ] ; multiLine ? : boolean ; } export interface Factory { create : ( params : Params ) => ts . ObjectLiteralExpression ; } export const create = ( { factory } ) : Factory [ "create" ] => ( params ) : ts . ObjectLiteralExpression => { const node = factory . createObjectLiteralExpression ( params . properties , params . multiLine ) ; return node ; } ; export const make = ( context ) : Factory => { return { create : create ( context ) , } ; } ;