From 84f7c15e43fb7570aaef0d071cd869dd41aea0de Mon Sep 17 00:00:00 2001 From: Nasreddine Bac Ali Date: Mon, 20 Jan 2020 21:19:19 +0100 Subject: [PATCH] Node os utils 1.2: update types (#41738) * node-os-utils 1.0: Add types * apply library file layout * fix lint errors * node-os-utils 1.1: Add types * node-os-utils 1.2: Add types --- types/node-os-utils/index.d.ts | 2 +- types/node-os-utils/lib/exec.d.ts | 2 ++ types/node-os-utils/lib/index.d.ts | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) 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';