Skip to content

PluginContext

Defined in: plugins/holocron-plugin-posthog/src/index.ts:24

What the plugin’s capabilities share: the options and a lazily built client.

client: () => object

Defined in: plugins/holocron-plugin-posthog/src/index.ts:28

Builds the PostHog client on first call and reuses it; the token is resolved then, not at plugin load.

object

projects: object

create: (input) => Promise<PostHogProject>

CreatePostHogProjectInput

Promise<PostHogProject>

list: () => Promise<PostHogProjectsResponse>

Promise<PostHogProjectsResponse>

users: object

me: () => Promise<PostHogUser>

Promise<PostHogUser>


options: PostHogPluginOptions

Defined in: plugins/holocron-plugin-posthog/src/index.ts:26

The options the plugin was created with.