(
stdout: NodeJS.WriteStream | RenderOptions | undefined = {},
)
| 159 | } |
| 160 | |
| 161 | const getOptions = ( |
| 162 | stdout: NodeJS.WriteStream | RenderOptions | undefined = {}, |
| 163 | ): RenderOptions => { |
| 164 | if (stdout instanceof Stream) { |
| 165 | return { |
| 166 | stdout, |
| 167 | stdin: process.stdin, |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | return stdout |
| 172 | } |
| 173 | |
| 174 | const getInstance = ( |
| 175 | stdout: NodeJS.WriteStream, |