DefinitelyTyped/types/degit/utils.d.ts
Piotr Błażejewicz (Peter Blazejewicz) e51f3c2609
feat(degit): new type definition (#45756)
- definition files for 'Rich-Harris/degit'
- tests

https://github.com/Rich-Harris/degit#readme
https://github.com/Rich-Harris/degit#javascript-api

Thanks!
2020-06-29 04:46:54 -04:00

30 lines
678 B
TypeScript

import { DegitErrorCode } from './index';
export const degitConfigName: string;
export class DegitError extends Error {
code: DegitErrorCode;
original?: Error;
ref?: string;
url?: string;
}
export function tryRequire(
file: string,
opts?: {
clearCache?: true;
},
): unknown;
export function exec(command: string): Promise<{ stdout: string; stderr: string }>;
export function mkdirp(dir: string): void;
export function fetch(url: string, dest: string, proxy: string): Promise<void>;
export function stashFiles(dir: string, dest: string): void;
export function unstashFiles(dir: string, dest: string): void;
export const base: string;