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