@ms-cloudpack/common-types-browser
This package provides types that are specific to the browser environment. There are two ways to use this package.
Directly: You can import types directly from this package
import { PageSessionContext } from '@ms-cloudpack/common-types-browser';
This is useful for server code. However, if you are writing code that runs in the browser, you should consider the second option.
Configure tsconfig.json to have @ms-cloudpack/common-types by default
{
"extends": "@ms-cloudpack/scripts/tsconfig.browser.json",
"include": ["./src"],
"compilerOptions": {
"types": ["@ms-cloudpack/common-types-browser"],
"customConditions": ["browser"]
}
}
This will make the types from this package available by default in your browser code.