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

3.0.4 • Public • Published

Installation

npm install --save @types/npmcli__map-workspaces

Summary

This package contains type definitions for @npmcli/map-workspaces (https://github.com/npm/map-workspaces#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npmcli__map-workspaces.

index.d.ts

import { PackageLock } from "@npmcli/arborist";
import { PackageJson } from "@npmcli/package-json";
import { IOptions as GlobOptions } from "glob";

export = mapWorkspaces;

declare function mapWorkspaces(opts: mapWorkspaces.Options): Promise<Map<string, string>>;

declare namespace mapWorkspaces {
    interface Options extends GlobOptions {
        pkg: PackageJson;
        cwd?: string;
        ignore?: string[];
    }

    interface VirtualOptions {
        lockfile: PackageLock;
        cwd?: string;
    }

    function virtual(opts: VirtualOptions): Map<string, string>;
}

Additional Details

Credits

These definitions were written by Emily M Klassen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/npmcli__map-workspaces

Weekly Downloads

2,790

Version

3.0.4

License

MIT

Unpacked Size

4.15 kB

Total Files

5

Last publish

Collaborators

  • types