import ts from "typescript" ; export interface Params { text : string ; rawText ? : string ; } export interface Factory { create : ( params : Params ) => ts . TemplateMiddle ; } export const create = ( { factory } ) : Factory [ "create" ] => ( params ) : ts . TemplateMiddle => { const node = factory . createTemplateMiddle ( params . text , params . rawText , undefined ) ; return node ; } ; export const make = ( context ) : Factory => { return { create : create ( context ) , } ; } ;