DefinitelyTyped/types/shelljs-exec-proxy/shelljs-exec-proxy-tests.ts

10 lines
385 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 void
shell.cd(123); // $ExpectError