diff --git a/types/node-os-utils/index.d.ts b/types/node-os-utils/index.d.ts index ed702adce7..72786d1040 100644 --- a/types/node-os-utils/index.d.ts +++ b/types/node-os-utils/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for node-os-utils 1.1 +// Type definitions for node-os-utils 1.2 // Project: https://github.com/SunilWang/node-os-utils // Definitions by: Nasreddine Bac Ali // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/node-os-utils/lib/exec.d.ts b/types/node-os-utils/lib/exec.d.ts index 54ac280501..96b4bd02ce 100644 --- a/types/node-os-utils/lib/exec.d.ts +++ b/types/node-os-utils/lib/exec.d.ts @@ -1 +1,3 @@ export function exec(command: string): () => Promise; + +export function wrapExec(command: string): () => () => Promise; diff --git a/types/node-os-utils/lib/index.d.ts b/types/node-os-utils/lib/index.d.ts index b7984000d8..e832eb7982 100644 --- a/types/node-os-utils/lib/index.d.ts +++ b/types/node-os-utils/lib/index.d.ts @@ -18,7 +18,9 @@ export const oscmd: OsCmd; export const proc: Proc; export const users: Users; -export let options: { NOT_SUPPORTED_VALUE: string, INTERVAL: number }; +export const options: { NOT_SUPPORTED_VALUE: string, INTERVAL: number }; + +export function isNotSupported(res: any): boolean; export * from './cpu'; export * from './drive';