Skip to content

Commit

Permalink
Fix SentryIntegration optional param typing (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Mar 12, 2021
1 parent b63220b commit a4941ca
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/module.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,23 +452,23 @@ declare class posthog {
static onFeatureFlags(callback: (flags: string[]) => void): false | undefined

/**
* Integrate Sentry with PostHog. This will add a direct link to the person in Sentry, and an $exception event in PostHog
*
* ### Usage
*
* Sentry.init({
* dsn: 'https://example',
* integrations: [
* new posthog.SentryIntegration(posthog)
* ]
* })
*
* @param {Object} [posthog] The posthog object
* @param {string} [organization] Optional: The Sentry organization, used to send a direct link from PostHog to Sentry
* @param {Number} [projectId] Optional: The Sentry project id, used to send a direct link from PostHog to Sentry
* @param {string} [prefix] Optional: Url of a self-hosted sentry instance (default: https://sentry.io/organizations/)
* Integrate Sentry with PostHog. This will add a direct link to the person in Sentry, and an $exception event in PostHog
*
* ### Usage
*
* Sentry.init({
* dsn: 'https://example',
* integrations: [
* new posthog.SentryIntegration(posthog)
* ]
* })
*
* @param {Object} [posthog] The posthog object
* @param {string} [organization] Optional: The Sentry organization, used to send a direct link from PostHog to Sentry
* @param {Number} [projectId] Optional: The Sentry project id, used to send a direct link from PostHog to Sentry
* @param {string} [prefix] Optional: Url of a self-hosted sentry instance (default: https://sentry.io/organizations/)
*/
static SentryIntegration(posthog: posthog, organization: string, projectId: number, prefix: string): void
static SentryIntegration(posthog: posthog, organization?: string, projectId?: number, prefix?: string): void

static toString(): string

Expand Down

0 comments on commit a4941ca

Please sign in to comment.