Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pega/pcore-pconnect-typedefs

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pega/pcore-pconnect-typedefs

Contains typedefs for PCore and PConnect

  • 3.2.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
364
decreased by-6.67%
Maintainers
0
Weekly downloads
 
Created
Source

Summary

This package provides typedefs for PCore and PConnect of release 24.2.

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.1

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: Mon Sep 02 2024 19:46:24 GMT+0530

Global values: PCore, PConnect, getPConnect

Credits

These definitions were written by pega.

Keywords

Pega PCore Pega Platform

FAQs

Package last updated on 08 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc