mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
15 lines
279 B
TypeScript
15 lines
279 B
TypeScript
import commandExists = require('command-exists');
|
|
|
|
commandExists('ls', (err, commandExists) => {
|
|
// $ExpectType boolean
|
|
commandExists;
|
|
});
|
|
|
|
commandExists('ls').then(command => {
|
|
// $ExpectType string
|
|
command;
|
|
});
|
|
|
|
// $ExpectType boolean
|
|
commandExists.sync('ls');
|