mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-12 15:44:06 -08:00
refactor: Mark defaults.color as deprecated in node descriptions (#10117)
This commit is contained in:
parent
ba27c987dc
commit
fc4184773a
|
@ -1814,9 +1814,17 @@ export interface INodeOutputConfiguration {
|
||||||
|
|
||||||
export type ExpressionString = `={{${string}}}`;
|
export type ExpressionString = `={{${string}}}`;
|
||||||
|
|
||||||
|
export type NodeDefaults = Partial<{
|
||||||
|
/**
|
||||||
|
* @deprecated Use {@link INodeTypeBaseDescription.iconColor|iconColor} instead. `iconColor` supports dark mode and uses preset colors from n8n's design system.
|
||||||
|
*/
|
||||||
|
color: string;
|
||||||
|
name: string;
|
||||||
|
}>;
|
||||||
|
|
||||||
export interface INodeTypeDescription extends INodeTypeBaseDescription {
|
export interface INodeTypeDescription extends INodeTypeBaseDescription {
|
||||||
version: number | number[];
|
version: number | number[];
|
||||||
defaults: INodeParameters;
|
defaults: NodeDefaults;
|
||||||
eventTriggerDescription?: string;
|
eventTriggerDescription?: string;
|
||||||
activationMessage?: string;
|
activationMessage?: string;
|
||||||
inputs: Array<ConnectionTypes | INodeInputConfiguration> | ExpressionString;
|
inputs: Array<ConnectionTypes | INodeInputConfiguration> | ExpressionString;
|
||||||
|
|
Loading…
Reference in a new issue