🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@posthog/plugin-globals

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@posthog/plugin-globals

Types for globals exposed to PostHog plugins

latest
npmnpm
Version
0.0.1
Version published
Maintainers
6
Created
Source

PostHog Plugin Globals

npm package MIT License

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!

Questions?

Join our Slack community.

FAQs

Package last updated on 24 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts