refactor: Mark defaults.color as deprecated in node descriptions (#10117)

This commit is contained in:
Elias Meire 2024-07-19 14:49:35 +02:00 committed by GitHub
parent ba27c987dc
commit fc4184773a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1814,9 +1814,17 @@ export interface INodeOutputConfiguration {
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 {
version: number | number[];
defaults: INodeParameters;
defaults: NodeDefaults;
eventTriggerDescription?: string;
activationMessage?: string;
inputs: Array<ConnectionTypes | INodeInputConfiguration> | ExpressionString;