@types/pnpapi
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

Installation

npm install --save @types/pnpapi

Summary

This package contains type definitions for pnpapi (https://yarnpkg.github.io/berry/advanced/pnpapi).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pnpapi.

index.d.ts

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;
        }
    }
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Maël Nison, and ExE Boss.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pnpapi

Weekly Downloads

6,822

Version

0.0.5

License

MIT

Unpacked Size

5.3 kB

Total Files

5

Last publish

Collaborators

  • types