@types/pnpapi
TypeScript definitions for pnpapi
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/pnpapi 
SYNC missed versions from official npm registry.

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

// Type definitions for pnpapi 0.0
// Project: https://yarnpkg.github.io/berry/advanced/pnpapi
// Definitions by: Maël Nison <https://github.com/arcanis>
//                 ExE Boss <https://github.com/ExE-Boss>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 08 Jul 2021 20:19:41 GMT
  • Dependencies: none
  • Global values: none

Credits

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

Current Tags

  • 0.0.2                                ...           latest (5 years ago)
  • 0.0.0                                ...           ts2.1 (7 years ago)
  • 0.0.0                                ...           ts2.2 (7 years ago)
  • 0.0.0                                ...           ts2.3 (7 years ago)
  • 0.0.0                                ...           ts2.4 (7 years ago)
  • 0.0.0                                ...           ts2.5 (7 years ago)
  • 0.0.0                                ...           ts2.6 (7 years ago)
  • 0.0.0                                ...           ts2.7 (7 years ago)
  • 0.0.0                                ...           ts2.8 (7 years ago)
  • 0.0.0                                ...           ts2.9 (7 years ago)
  • 0.0.0                                ...           ts3.0 (7 years ago)
  • 0.0.0                                ...           ts3.1 (7 years ago)
  • 0.0.1                                ...           ts3.2 (6 years ago)
  • 0.0.1                                ...           ts3.3 (6 years ago)
  • 0.0.1                                ...           ts3.4 (6 years ago)
  • 0.0.1                                ...           ts3.5 (6 years ago)
  • 0.0.2                                ...           ts3.6 (5 years ago)
  • 0.0.2                                ...           ts3.7 (5 years ago)
  • 0.0.2                                ...           ts3.8 (5 years ago)
  • 0.0.2                                ...           ts3.9 (5 years ago)
  • 0.0.2                                ...           ts4.0 (5 years ago)
  • 0.0.2                                ...           ts4.1 (5 years ago)
  • 0.0.2                                ...           ts4.2 (5 years ago)
  • 0.0.2                                ...           ts4.3 (5 years ago)
  • 0.0.2                                ...           ts4.4 (5 years ago)
  • 0.0.2                                ...           ts4.5 (5 years ago)
  • 0.0.2                                ...           ts4.6 (5 years ago)
  • 0.0.2                                ...           ts4.7 (5 years ago)
  • 0.0.2                                ...           ts4.8 (5 years ago)
  • 0.0.2                                ...           ts4.9 (5 years ago)
  • 0.0.2                                ...           ts5.0 (5 years ago)
  • 0.0.2                                ...           ts5.1 (5 years ago)

3 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           6 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |