feat: Rewrite Front End cloud and posthog hooks using TypeScript (no-changelog) (#5491)

This commit is contained in:
Alex Grozav
2023-11-13 15:10:42 +02:00
committed by GitHub
parent 3dfabc37d8
commit a262c450f7
41 changed files with 1439 additions and 131 deletions

View File

@@ -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 {