feat: Rewrite Front End cloud and posthog hooks using TypeScript (no-changelog) (#5491)
This commit is contained in:
10
packages/editor-ui/src/shims.d.ts
vendored
10
packages/editor-ui/src/shims.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import { VNode, ComponentPublicInstance } from 'vue';
|
||||
import type { Store } from 'pinia';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { PartialDeep } from 'type-fest';
|
||||
import { ExternalHooks } from '@/types/externalHooks';
|
||||
|
||||
declare module 'markdown-it-link-attributes';
|
||||
declare module 'markdown-it-emoji';
|
||||
@@ -20,10 +20,8 @@ declare global {
|
||||
interface Window {
|
||||
BASE_PATH: string;
|
||||
REST_ENDPOINT: string;
|
||||
n8nExternalHooks?: Record<
|
||||
string,
|
||||
Record<string, Array<(store: Store, metadata?: IDataObject) => Promise<void>>>
|
||||
>;
|
||||
n8nHooksNext: boolean;
|
||||
n8nExternalHooks?: PartialDeep<ExternalHooks>;
|
||||
}
|
||||
|
||||
namespace JSX {
|
||||
|
||||
Reference in New Issue
Block a user