preact-material-components
Version:
preact wrapper for "Material Components for the web"
29 lines (23 loc) • 754 B
TypeScript
/**
* Execute a command cross-platform.
*
* @param {string} cmd command to execute e.g. `"npm"`
* @param {any[]} [args] command argument e.g. `["install", "-g", "git"]`
* @param {Partial<crossSpawnPromise.CrossSpawnOptions>} [options] additional options.
* @returns {Promise<Uint8Array>} a promise result with `stdout`
*/
declare function crossSpawnPromise(cmd: string, args?: any[], options?: Partial<crossSpawnPromise.CrossSpawnOptions>): Promise<Uint8Array>;
declare namespace crossSpawnPromise {
interface CrossSpawnOptions {
encoding: string;
stdio: string;
}
interface CrossSpawnError {
exitStatus: number;
message: string;
stack: string;
stderr: Uint8Array;
stdout: Uint8Array | null;
}
}
export = crossSpawnPromise;