3.2.0-rev-2 • Published 2 months ago

@pega/pcore-pconnect-typedefs v3.2.0-rev-2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

Summary

This package provide typedefs for PCore and PConnect.

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@3.2.0-rev-2

Usage

In JavaScript project

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

In TypeScript project

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

Additional Details

Last updated: Wed, 11 Oct 2023 16:34:20 GMT

Global values: PCore, PConnect, getPConnect

Credits

These definitions were written by pega.

Keywords

Pega PCore Pega Platform

3.2.0-rev-2

2 months ago

3.2.0-rev-1

2 months ago

2.1.1

3 months ago

2.1.2

3 months ago

1.1.0

7 months ago

1.0.0

7 months ago

8.23.1-dev-0

7 months ago

8.8.4-dev-0

7 months ago

3.0.0

7 months ago

8.8.3-dev-0

7 months ago

8.23.0-dev-1

10 months ago

8.23.0-dev-0

10 months ago

8.23.0-dev-3

7 months ago

8.23.0-dev-2

8 months ago

8.23.0-1

10 months ago

8.24.0-dev-1

8 months ago

2.1.0

7 months ago

2.0.0

7 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.6

1 year ago

0.0.1

3 years ago