| 70 | } |
| 71 | |
| 72 | interface WrapPluginConfigForCliOptions { |
| 73 | /** |
| 74 | * Optional logger callback invoked when a `choices` or `default` function |
| 75 | * throws during inquirer evaluation. Receives `(fieldName, kind, error)`. |
| 76 | */ |
| 77 | onError?: (fieldName: string, kind: 'choices' | 'default', error: unknown) => void |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Lazily wrap function-form `choices` / `default` with a try/catch so a |
nothing calls this directly
no outgoing calls
no test coverage detected