(value?: boolean | InteractiveOptions)
| 15 | * Use this helper instead of manually checking options.noInteractive to avoid bugs. |
| 16 | */ |
| 17 | export function resolveNoInteractive(value?: boolean | InteractiveOptions): boolean { |
| 18 | if (typeof value === 'boolean') return value; |
| 19 | return value?.noInteractive === true || value?.interactive === false; |
| 20 | } |
| 21 | |
| 22 | export function isInteractive(value?: boolean | InteractiveOptions): boolean { |
| 23 | if (resolveNoInteractive(value)) return false; |
no outgoing calls
no test coverage detected