yibn2008/find-process

Build error A 'declare' modifier is required

FejZa opened this issue · 2 comments

FejZa commented

Hi,

when building my code using tsc mycode.ts --lib es6 I keep getting this error. The output JavaScript works fine though.

node_modules/find-process/index.d.ts:1:1 - error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.

function find(type: "name" | "pid" | "port", value: string | number | RegExp, strict?: boolean): Promise<{

@FejZa fixed: find-process@1.2.1

FejZa commented

Thanks a lot!