deno-deamon icon indicating copy to clipboard operation
deno-deamon copied to clipboard

type error!

Open despider001 opened this issue 4 years ago • 0 comments

Here is the full error:

error: TS2349 [ERROR]: This expression is not callable. Type '{ get(key: string): string | undefined; set(key: string, value: string): void; toObject(): { [index: string]: string; }; }' has no call signatures. if (!Deno.env("__deamon")) { ~~~ at https://raw.githubusercontent.com/manyuanrong/deno-deamon/master/mod.ts:2:15

TS2349 [ERROR]: This expression is not callable. Type '{ get(key: string): string | undefined; set(key: string, value: string): void; toObject(): { [index: string]: string; }; }' has no call signatures. const env = { ...Deno.env(), __deamon: "true" }; ~~~ at https://raw.githubusercontent.com/manyuanrong/deno-deamon/master/mod.ts:5:29

TS2345 [ERROR]: Argument of type '{ args: string[]; env: any; stdout: "null"; stdin: "null"; stderr: "null"; }' is not assignable to parameter of type 'RunOptions'. Object literal may only specify known properties, and 'args' does not exist in type 'RunOptions'. args: [Deno.execPath(), "run", "--allow-all", script, ...args], ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ at https://raw.githubusercontent.com/manyuanrong/deno-deamon/master/mod.ts:7:9

Found 3 errors.

despider001 avatar May 11 '20 13:05 despider001