From fb24229a88e6c7b8d8df955634a0af1e3e025ad2 Mon Sep 17 00:00:00 2001 From: David Newell Date: Wed, 10 Apr 2024 17:06:51 +0100 Subject: [PATCH] fix: sampling typescript error --- src/posthog-core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posthog-core.ts b/src/posthog-core.ts index c10f96588..3087fdade 100644 --- a/src/posthog-core.ts +++ b/src/posthog-core.ts @@ -1706,7 +1706,7 @@ export class PostHog { * disable_session_recording to false * @param override.sampling - optional boolean to override the default sampling behavior - ensures the next session recording to start will not be skipped by sampling config. */ - startSessionRecording(override: { sampling?: boolean }): void { + startSessionRecording(override?: { sampling?: boolean }): void { if (override?.sampling) { // allow the session id check to rotate session id if necessary const ids = this.sessionManager?.checkAndGetSessionAndWindowId()