Files
test-repo/tests/flow/node_tests/child_process/execSync.js
T

10 lines
442 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
/* @flow */
var execSync = require('child_process').execSync;
(execSync('ls'): Buffer); // returns Buffer
(execSync('ls', {encoding: 'buffer'}): Buffer); // returns Buffer
(execSync('ls', {encoding: 'utf8'}): string); // returns string
(execSync('ls', {timeout: '250'})); // error, no signatures match
(execSync('ls', {stdio: 'inherit'})); // error, no signatures match
(execSync('ls', {stdio: ['inherit']})); // error, no signatures match