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

Interface EvaluatePluginConfigOptions

src/utils/pluginConfig.ts:3–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { IPluginConfig, PluginConfigAnswers } from '../types'
2
3interface EvaluatePluginConfigOptions {
4 /**
5 * Optional logger callback invoked when a `choices` or `default` function
6 * throws. The runtime can wire this to `ctx.log.warn` so degraded fields
7 * are visible. Receives `(fieldName, kind, error)`.
8 */
9 onError?: (fieldName: string, kind: 'choices' | 'default', error: unknown) => void
10}
11
12/**
13 * Evaluate a Plugin Config Schema, resolving function-form `choices` and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected