mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-06 10:27:28 -08:00
9c94050deb
* refactor: replace Vue.extend with defineComponent in editor-ui * fix: change $externalHooks extractions from mixins * fix: refactor externalHooks mixin
40 lines
885 B
TypeScript
40 lines
885 B
TypeScript
import Vue, { VNode } from 'vue';
|
|
import type { Store } from 'pinia';
|
|
import type { IDataObject } from 'n8n-workflow';
|
|
|
|
declare module 'markdown-it-link-attributes';
|
|
declare module 'markdown-it-emoji';
|
|
declare module 'markdown-it-task-lists';
|
|
|
|
declare global {
|
|
interface ImportMeta {
|
|
env: {
|
|
DEV: boolean;
|
|
PROD: boolean;
|
|
NODE_ENV: 'development' | 'production';
|
|
VUE_APP_URL_BASE_API: string;
|
|
};
|
|
}
|
|
|
|
interface Window {
|
|
BASE_PATH: string;
|
|
REST_ENDPOINT: string;
|
|
n8nExternalHooks?: Record<
|
|
string,
|
|
Record<string, Array<(store: Store, metadata?: IDataObject) => Promise<void>>>
|
|
>;
|
|
}
|
|
|
|
namespace JSX {
|
|
interface Element extends VNode {}
|
|
interface ElementClass extends Vue {}
|
|
interface IntrinsicElements {
|
|
[elem: string]: any;
|
|
}
|
|
}
|
|
|
|
interface Array<T> {
|
|
findLast(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T;
|
|
}
|
|
}
|