0.6.1 • Published 5 months ago
@ms-cloudpack/common-types-browser v0.6.1
@ms-cloudpack/common-types-browser
This package provides Cloudpack types that are specific to the browser environment. There are two ways to use this package.
Import types directly
import { PageSessionContext } from '@ms-cloudpack/common-types-browser';This is useful for server code, since it does not define the window.__cloudpack global.
Configure tsconfig.json to include the globals
This makes window.__cloudpack and window.__pageEvents available to your code. (You can combine this with importing individual types as needed.)
{
"compilerOptions": {
"types": ["@ms-cloudpack/common-types-browser/global"]
}
}