refactor(editor): Fix typescript issues in components (no-changelog) (#9580)

This commit is contained in:
Elias Meire
2024-05-31 16:27:56 +02:00
committed by GitHub
parent e23420d89d
commit 3227f6c13e
20 changed files with 57 additions and 58 deletions

View File

@@ -57,6 +57,7 @@ import type { Scope } from '@n8n/permissions';
import type { NotificationOptions as ElementNotificationOptions } from 'element-plus';
import type { ProjectSharingData } from '@/features/projects/projects.types';
import type { Connection } from '@jsplumb/core';
import type { BaseTextKey } from './plugins/i18n';
export * from 'n8n-design-system/types';
@@ -138,14 +139,7 @@ export type EndpointMeta = {
};
};
export interface IUpdateInformation<
T extends NodeParameterValueType =
| string
| number
| { [key: string]: string | number | boolean }
| NodeParameterValueType
| INodeParameters,
> {
export interface IUpdateInformation<T extends NodeParameterValueType = NodeParameterValueType> {
name: string;
key?: string;
value: T;
@@ -1340,12 +1334,12 @@ export interface UIState {
export type IFakeDoor = {
id: FAKE_DOOR_FEATURES;
featureName: string;
featureName: BaseTextKey;
icon?: string;
infoText?: string;
actionBoxTitle: string;
actionBoxDescription: string;
actionBoxButtonLabel?: string;
infoText?: BaseTextKey;
actionBoxTitle: BaseTextKey;
actionBoxDescription: BaseTextKey;
actionBoxButtonLabel?: BaseTextKey;
linkURL: string;
uiLocations: IFakeDoorLocation[];
};