Skip to content

Instantly share code, notes, and snippets.

@BlueHotDog
Created March 19, 2020 13:00
Show Gist options
  • Save BlueHotDog/72fa0bd6aab211597de1370194e87c27 to your computer and use it in GitHub Desktop.
Save BlueHotDog/72fa0bd6aab211597de1370194e87c27 to your computer and use it in GitHub Desktop.
type promiseResult('enc) = {
.
\"childProcess\": childProcess,
\"stdout\": 'enc,
\"stderr\": 'enc
};
type spawnPromiseResult = {. \"code\": float};
type childProcessPromise('t) = {. \"childProcess\": childProcess};
type options = {
.
\"capture\": Js.Nullable.t('any),
\"successfulExitCodes\": Js.Nullable.t('any)
};
[@bs.module \"test\"]
external exec : (~command: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external exec : (~command: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external exec : (~command: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external exec : (~command: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external execFile : (~file: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external execFile : (~file: readonly, ~args: 'any, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external execFile : (~file: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external execFile : (~file: readonly, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external execFile : (~file: readonly, ~args: 'any, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external execFile : (~file: readonly, ~args: 'any, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external spawn : (~command: readonly, ~args: 'any, ~options: readonly) => childProcessPromise = \"\";
[@bs.module \"test\"]
external fork :
(~modulePath: string, ~args: readonlyArray, ~options: readonly) => childProcessPromise =
\"\";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment