-
Couldn't load subscription status.
- Fork 39
Open
Description
TS2322 [ERROR]: Type '(path: string, options: SpawnCommandOptions) => { stdin(): WritableStream<any>; kill(signo?: Signal | undefined): void; waitExitCode(): Promise<...>; stdout(): ReadableStream; stderr(): ReadableStream; }' is not assignable to type 'SpawnCommand'.
Call signature return types '{ stdin(): WritableStream<any>; kill(signo?: Signal | undefined): void; waitExitCode(): Promise<number>; stdout(): ReadableStream; stderr(): ReadableStream; }' and 'SpawnedChildProcess' are incompatible.
The types of 'stdin().getWriter().closed' are incompatible between these types.
Type 'Promise<void>' is not assignable to type 'Promise<undefined>'.
Type 'void' is not assignable to type 'undefined'.
export const spawnCommand: SpawnCommand = (path, options) => {
~~~~~~~~~~~~
at file:///home/mrcool/dev/deno/others/dax/src/runtimes/process.node.ts:18:14
TS18046 [ERROR]: 'error' is of type 'unknown'.
response.end(new TextEncoder().encode(`Server error: ${error.message}`));
~~~~~
at file:///home/mrcool/dev/deno/others/dax/src/test/server.node.ts:22:66
Found 2 errors.
Metadata
Metadata
Assignees
Labels
No labels