Nautical Pea Maker

    @posthog/plugin-globals
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @posthog/plugin-globals

    DownloadsWeekly Downloads

    2

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    1.73 kB

    Total Files

    4

    Last publish

    Collaborators

    • xavier-posthog
    • ben-posthog
    • alexkim205
    • twixes
    • fuziontech
    • mariusandra
    • yakkomajuri
    • macobo
    • timgl