From e124960687baa5a4f3139d726dc67b03a78b6d28 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Mon, 16 Sep 2024 18:58:51 +0100 Subject: [PATCH] comment --- src/utils/globals.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/globals.ts b/src/utils/globals.ts index 981743a9f..fd9296015 100644 --- a/src/utils/globals.ts +++ b/src/utils/globals.ts @@ -16,6 +16,10 @@ import { SurveyManager } from '../extensions/surveys' // eslint-disable-next-line no-restricted-globals const win: (Window & typeof globalThis) | undefined = typeof window !== 'undefined' ? window : undefined +/** + * This is our contract between (potentially) lazily loaded extensions and the SDK + * changes to this interface can be breaking changes for users of the SDK + */ interface PosthogExtensions { parseErrorAsProperties?: ([event, source, lineno, colno, error]: ErrorEventArgs) => ErrorProperties errorWrappingFunctions?: {