DefinitelyTyped/types/shelljs-exec-proxy/shelljs-exec-proxy-tests.ts
2019-01-24 11:15:54 +01:00

10 lines
392 B
TypeScript

import * as shell from 'shelljs-exec-proxy';
shell.git.status(); // $ExpectType ExecOutputReturnValue
shell.git.add('.'); // $ExpectType ExecOutputReturnValue
shell.git.commit('-am', 'Fixed issue #1'); // $ExpectType ExecOutputReturnValue
shell.git.push('origin', 'master'); // $ExpectType ExecOutputReturnValue
shell.cd('string'); // $ExpectType ShellString
shell.cd(123); // $ExpectError