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
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/glob, @types/npmcli__arborist, @types/npmcli__package-json
Credits
These definitions were written by Emily M Klassen.