
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
@types/pnpapi
Advanced tools
TypeScript definitions for pnpapi
npm install --save @types/pnpapi
This package contains type definitions for pnpapi (https://yarnpkg.github.io/berry/advanced/pnpapi).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pnpapi.
export interface PhysicalPackageLocator {
name: string;
reference: string;
}
export interface TopLevelPackageLocator {
name: null;
reference: null;
}
export type PackageLocator =
| PhysicalPackageLocator
| TopLevelPackageLocator;
export interface PackageInformation {
packageLocation: string;
packageDependencies: Map<string, string | [string, string]>;
}
export const VERSIONS: { std: number; [key: string]: number };
export const topLevel: { name: null; reference: null };
export function getPackageInformation(locator: PackageLocator): PackageInformation;
export function findPackageLocator(location: string): PackageLocator | null;
export function resolveToUnqualified(
request: string,
issuer: string | null,
opts?: { considerBuiltins?: boolean | undefined },
): string | null;
export function resolveUnqualified(unqualified: string, opts?: { extensions?: string[] | undefined }): string;
export function resolveRequest(
request: string,
issuer: string | null,
opts?: { considerBuiltins?: boolean | undefined; extensions?: string[] | undefined },
): string | null;
export function setup(): void;
declare global {
namespace NodeJS {
interface ProcessVersions {
pnp?: string | undefined;
}
}
}
These definitions were written by Maël Nison, and ExE Boss.
FAQs
TypeScript definitions for pnpapi
The npm package @types/pnpapi receives a total of 8,117 weekly downloads. As such, @types/pnpapi popularity was classified as popular.
We found that @types/pnpapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.