@wpkernel/cli / ConflictDiagnostic
Interface: ConflictDiagnostic
Diagnostic emitted when two helpers conflict.
Example
ts
A generate helper overrides another helper with the same key.Properties
helpers
ts
readonly helpers: readonly string[];A list of helpers involved in the conflict.
key
ts
readonly key: string;The key of the helper that caused the conflict.
message
ts
readonly message: string;A descriptive message about the conflict.
mode
ts
readonly mode: HelperMode;The conflict resolution mode (e.g., 'override').
type
ts
readonly type: "conflict";The type of diagnostic, always 'conflict'.
kind?
ts
readonly optional kind: string;Helper kind associated with the conflict.
