This package provide typedefs for PCore and PConnect.
npm install --save-dev @pega/pcore-pconnect-typedefs@3.2.0-rev-2
{
"exclude": [],
"compilerOptions": {
"typeRoots": ["node_modules/@types", "node_modules/@pega"],
"baseUrl": "./"
}
}
PCore.getCascadeManager().registerFields();
Usage for PConnect
API, Since getPConnect will be a prop inside the components and it'll be scoped with the component itself.
const { getPConnect } = props;
/** @type {PConnect} */
const pConn = getPConnect();
{
"exclude": [],
"compilerOptions": {
"typeRoots": ["node_modules/@types", "node_modules/@pega"],
"baseUrl": "./"
}
}
PCore.getCascadeManager().registerFields();
Usage for PConnect
API, Since getPConnect will be a prop inside the components and it'll be scoped with the component itself.
const { getPConnect } = props;
const pconn: typeof PConnect = getPConnect();
Last updated: Wed, 11 Oct 2023 16:34:20 GMT
Global values: PCore, PConnect, getPConnect
These definitions were written by pega.
Pega PCore Pega Platform