PluginContext
Defined in: plugins/holocron-plugin-posthog/src/index.ts:24
What the plugin’s capabilities share: the options and a lazily built client.
Properties
Section titled “Properties”client
Section titled “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.
Returns
Section titled “Returns”object
projects
Section titled “projects”projects:
object
projects.create
Section titled “projects.create”create: (
input) =>Promise<PostHogProject>
Parameters
Section titled “Parameters”CreatePostHogProjectInput
Returns
Section titled “Returns”Promise<PostHogProject>
projects.list
Section titled “projects.list”list: () =>
Promise<PostHogProjectsResponse>
Returns
Section titled “Returns”Promise<PostHogProjectsResponse>
users:
object
users.me
Section titled “users.me”me: () =>
Promise<PostHogUser>
Returns
Section titled “Returns”Promise<PostHogUser>
options
Section titled “options”options:
PostHogPluginOptions
Defined in: plugins/holocron-plugin-posthog/src/index.ts:26
The options the plugin was created with.