fix(LangChain Code Node): Fix icon in dark mode (no-changelog) (#9863)

Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-06-27 12:09:43 +02:00
committed by GitHub
parent 4008c147d7
commit a43d6f0c5e
4 changed files with 15 additions and 8 deletions

View File

@@ -310,7 +310,7 @@ type ICredentialHttpRequestNode = {
export interface ICredentialType {
name: string;
displayName: string;
icon?: Themed<Icon>;
icon?: Icon;
iconUrl?: Themed<string>;
extends?: string[];
properties: INodeProperties[];
@@ -1571,13 +1571,15 @@ export type NodeIconColor =
| 'azure'
| 'purple'
| 'crimson';
export type Icon = `fa:${string}` | `file:${string}` | `node:${string}`;
export type Themed<T> = T | { light: T; dark: T };
export type IconRef = `fa:${string}` | `node:${string}.${string}`;
export type IconFile = `file:${string}.png` | `file:${string}.svg`;
export type Icon = IconRef | Themed<IconFile>;
export interface INodeTypeBaseDescription {
displayName: string;
name: string;
icon?: Themed<Icon>;
icon?: Icon;
iconColor?: NodeIconColor;
iconUrl?: Themed<string>;
badgeIconUrl?: Themed<string>;