Files
pnpm/typings/typed.d.ts
vagusX 6375cdce0b feat: support windows shebang (#3887)
Co-authored-by: Zoltan Kochan <z@kochan.io>
2021-10-19 12:01:09 +03:00

63 lines
1.6 KiB
TypeScript

// 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 module 'bin-links/lib/fix-bin' {
function fixBin (path: string, execMode: number): Promise<void>;
export = fixBin;
}
declare namespace NodeJS.Module {
function _nodeModulePaths(from: string): string[]
}