@types/npmcli__promise-spawn
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -7,14 +7,18 @@ // Type definitions for @npmcli/promise-spawn 6.0 | ||
import { SpawnOptions, spawn } from 'child_process'; | ||
import { spawn, SpawnOptions } from "child_process"; | ||
type NativeSpawnResult = ReturnType<typeof spawn>; | ||
type SpawnResult<Output, Extra> = Promise<{ | ||
cmd: string; | ||
args: string[]; | ||
code: number; | ||
signal: NodeJS.Signals | null; | ||
stdout: Output; | ||
stderr: Output; | ||
} & Extra> & { process: NativeSpawnResult, stdio: NativeSpawnResult['stdio'] }; | ||
type SpawnResult<Output, Extra> = | ||
& Promise< | ||
{ | ||
cmd: string; | ||
args: string[]; | ||
code: number; | ||
signal: NodeJS.Signals | null; | ||
stdout: Output; | ||
stderr: Output; | ||
} & Extra | ||
> | ||
& { process: NativeSpawnResult; stdio: NativeSpawnResult["stdio"] }; | ||
@@ -21,0 +25,0 @@ type PromiseSpawnOptions = { |
{ | ||
"name": "@types/npmcli__promise-spawn", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "TypeScript definitions for @npmcli/promise-spawn", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npmcli__promise-spawn", | ||
}, | ||
"typesPublisherContentHash": "e1f38a73d0360d925f15070b1d91ccd576c450a5a382c0581643be86ff314e83", | ||
"typeScriptVersion": "4.2" | ||
"typesPublisherContentHash": "1d5a3680465d81fd0031f1d29ccadfccb207dfa5d2b2283f17d836a2df274330", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -17,14 +17,18 @@ # Installation | ||
import { SpawnOptions, spawn } from 'child_process'; | ||
import { spawn, SpawnOptions } from "child_process"; | ||
type NativeSpawnResult = ReturnType<typeof spawn>; | ||
type SpawnResult<Output, Extra> = Promise<{ | ||
cmd: string; | ||
args: string[]; | ||
code: number; | ||
signal: NodeJS.Signals | null; | ||
stdout: Output; | ||
stderr: Output; | ||
} & Extra> & { process: NativeSpawnResult, stdio: NativeSpawnResult['stdio'] }; | ||
type SpawnResult<Output, Extra> = | ||
& Promise< | ||
{ | ||
cmd: string; | ||
args: string[]; | ||
code: number; | ||
signal: NodeJS.Signals | null; | ||
stdout: Output; | ||
stderr: Output; | ||
} & Extra | ||
> | ||
& { process: NativeSpawnResult; stdio: NativeSpawnResult["stdio"] }; | ||
@@ -55,3 +59,3 @@ type PromiseSpawnOptions = { | ||
### Additional Details | ||
* Last updated: Mon, 12 Dec 2022 13:33:14 GMT | ||
* Last updated: Sat, 23 Sep 2023 20:38:33 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -58,0 +62,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5505
37
64