forked from pnpm/pnpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
typed.d.ts
56 lines (46 loc) · 1.47 KB
/
typed.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// This file contains type definitions that aren't just `export = any`
declare module '@pnpm/registry-mock' {
export function getIntegrity (pkgName: string, pkgVersion: string): string
export function addDistTag (opts: {package: string, version: string, distTag: string}): Promise<void>
export const REGISTRY_MOCK_PORT: string
}
declare module 'cli-columns' {
function cliColumns (values: string[], opts?: { newline?: string, width?: number }): string
export = cliColumns;
}
declare module 'normalize-registry-url' {
function normalizeRegistryUrl (registry: string): string
export = normalizeRegistryUrl;
}
declare module 'normalize-newline' {
function normalizeNewline (text: string): string
export = normalizeNewline;
}
declare module 'path-name' {
const pathname: string;
export = pathname;
}
declare module 'read-ini-file' {
function readIniFile (filename: string): Promise<Object>;
export = readIniFile;
}
declare module 'right-pad' {
function rightPad (txt: string, size: number): string;
export = rightPad;
}
declare module 'semver-utils' {
export function parseRange (range: string): Array<{
semver?: string,
operator: string,
major?: string,
minor?: string,
patch?: string,
}>
}
declare module 'split-cmd' {
export function split (cmd: string): string[]
export function splitToObject (cmd: string): { command: string, args: string[] }
}
declare namespace NodeJS.Module {
function _nodeModulePaths(from: string): string[]
}