MCPcopy Create free account
hub / github.com/PicGo/PicGo-Core / WrapPluginConfigForCliOptions

Interface WrapPluginConfigForCliOptions

src/utils/pluginConfig.ts:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72interface 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected