feat: Replace Vue.extend with defineComponent in editor-ui (no-changelog) (#6033)
* refactor: replace Vue.extend with defineComponent in editor-ui * fix: change $externalHooks extractions from mixins * fix: refactor externalHooks mixin
This commit is contained in:
6
packages/editor-ui/src/shims.d.ts
vendored
6
packages/editor-ui/src/shims.d.ts
vendored
@@ -1,4 +1,6 @@
|
||||
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';
|
||||
@@ -17,6 +19,10 @@ declare global {
|
||||
interface Window {
|
||||
BASE_PATH: string;
|
||||
REST_ENDPOINT: string;
|
||||
n8nExternalHooks?: Record<
|
||||
string,
|
||||
Record<string, Array<(store: Store, metadata?: IDataObject) => Promise<void>>>
|
||||
>;
|
||||
}
|
||||
|
||||
namespace JSX {
|
||||
|
||||
Reference in New Issue
Block a user