| 5 | |
| 6 | export type RenderCallback = (err: Error | null, str?: string | any) => any; |
| 7 | export interface EngineFunction { |
| 8 | (path: string, options: any, cb: RenderCallback): void; |
| 9 | (path: string, options: any): Promise<string>; |
| 10 | |
| 11 | render(template: string, options: any, cb: RenderCallback): void; |
| 12 | render(template: string, options: any): Promise<string>; |
| 13 | } |
| 14 | |
| 15 | const callbackify = async (fn: any, cb?: RenderCallback) => { |
| 16 | try { |
no outgoing calls
no test coverage detected