
# Summary
This package provides typedefs for PCore and PConnect of release 25.1.

Refer : https://docs.pega.com/bundle/pcore-pconnect/page/pcore-pconnect-public-apis/api/using-pcore-pconnect-public-apis.html



# Installation

```
npm install --save-dev @pega/pcore-pconnect-typedefs@4.1.0
```


# Usage

#### In JavaScript project

##### Point to `@pega/pcore-pconnect-typeDefs` in `<project-root>/jsconfig.json`
```js
{
  "exclude": [],
  "compilerOptions": {
    "typeRoots": ["node_modules/@types", "node_modules/@pega"],
    "baseUrl": "./"
  }
}
```
##### Usage for `PCore` APIs
```js
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.
```js
const { getPConnect } = props;

/** @type {PConnect} */
const pConn = getPConnect();

```
#### In TypeScript project

##### Point to `@pega/pcore-pconnect-typeDefs` in `<project-root>/tsconfig.json`
```js
{
  "exclude": [],
  "compilerOptions": {
    "typeRoots": ["node_modules/@types", "node_modules/@pega"],
    "baseUrl": "./"
  }
}
```
##### Usage for `PCore` APIs
```js
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.
```js
const { getPConnect } = props;
const pconn: typeof PConnect = getPConnect();
```


# Additional Details
Last updated: Wed Aug 13 2025 19:46:24 GMT+0530

Global values: **PCore**, **PConnect**, **getPConnect**


# Credits
These definitions were written by pega.


# Keywords
Pega PCore Pega Platform
