UNPKG

posthog-tours

Version:

A TypeScript package for creating guided tours in PostHog

18 lines (17 loc) 820 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostHogFeatureFlagsNotConfiguredError = exports.PostHogNotInitializedError = void 0; class PostHogNotInitializedError extends Error { constructor() { super('PostHog has not been initialized. Please initialize PostHog before using posthog-tours.'); this.name = 'PostHogNotInitializedError'; } } exports.PostHogNotInitializedError = PostHogNotInitializedError; class PostHogFeatureFlagsNotConfiguredError extends Error { constructor(missingFlags) { super(`The following feature flags are not configured in PostHog: ${missingFlags.join(', ')}`); this.name = 'PostHogFeatureFlagsNotConfiguredError'; } } exports.PostHogFeatureFlagsNotConfiguredError = PostHogFeatureFlagsNotConfiguredError;