@posthog/plugin-globals
v0.0.1
Published
Types for globals exposed to PostHog plugins
Downloads
6
Keywords
Readme
PostHog Plugin Globals
This package contains types for globals exposed to PostHog plugins.
To use, install via yarn or npm:
yarn add --dev @posthog/plugin-globals
npm install --save-dev @posthog/plugin-globals
Then add the following to your tsconfig.json
:
{
"include": [
/* keep exisitng entries like "src" or "**.ts" and add: */
"./node_modules/@posthog/plugin-globals/globals.d.ts"
]
}
Alternatively (only if the previous step is not suitable), add the following to the top of your index.ts
:
import '@posthog/plugin-globals'
Enjoy an improved plugin authoring experience!