fix typescript definitions for versions()
This commit is contained in:
parent
9c73592ff2
commit
e75edb001b
@ -589,7 +589,7 @@ si.versions().then(data => console.log(data));</code></pre class="example">
|
||||
}</pre>
|
||||
<h5>Example 2</h5>
|
||||
<pre><code class="js">const si = require('systeminformation');
|
||||
si.versions('npm, php, postgresql').then(data => console.log(data));</code></pre class="example">
|
||||
si.versions('npm, php, postgresql').then(data => console.log(data));</code></pre class="example">
|
||||
<pre class="example">
|
||||
{
|
||||
npm: '6.13.6',
|
||||
|
||||
62
lib/index.d.ts
vendored
62
lib/index.d.ts
vendored
@ -214,36 +214,36 @@ export namespace Systeminformation {
|
||||
}
|
||||
|
||||
interface VersionData {
|
||||
kernel: string;
|
||||
openssl: string;
|
||||
systemOpenssl: string;
|
||||
systemOpensslLib: string;
|
||||
node: string;
|
||||
v8: string;
|
||||
npm: string;
|
||||
yarn: string;
|
||||
pm2: string;
|
||||
gulp: string;
|
||||
grunt: string;
|
||||
git: string;
|
||||
tsc: string;
|
||||
mysql: string;
|
||||
redis: string;
|
||||
mongodb: string;
|
||||
nginx: string;
|
||||
php: string;
|
||||
docker: string;
|
||||
postfix: string;
|
||||
postgresql: string;
|
||||
perl: string;
|
||||
python: string;
|
||||
python3: string;
|
||||
pip: string;
|
||||
pip3: string;
|
||||
java: string;
|
||||
gcc: string;
|
||||
virtualbox: string;
|
||||
dotnet: string;
|
||||
kernel?: string;
|
||||
openssl?: string;
|
||||
systemOpenssl?: string;
|
||||
systemOpensslLib?: string;
|
||||
node?: string;
|
||||
v8?: string;
|
||||
npm?: string;
|
||||
yarn?: string;
|
||||
pm2?: string;
|
||||
gulp?: string;
|
||||
grunt?: string;
|
||||
git?: string;
|
||||
tsc?: string;
|
||||
mysql?: string;
|
||||
redis?: string;
|
||||
mongodb?: string;
|
||||
nginx?: string;
|
||||
php?: string;
|
||||
docker?: string;
|
||||
postfix?: string;
|
||||
postgresql?: string;
|
||||
perl?: string;
|
||||
python?: string;
|
||||
python3?: string;
|
||||
pip?: string;
|
||||
pip3?: string;
|
||||
java?: string;
|
||||
gcc?: string;
|
||||
virtualbox?: string;
|
||||
dotnet?: string;
|
||||
}
|
||||
|
||||
interface UserData {
|
||||
@ -626,7 +626,7 @@ export function chassis(cb?: (data: Systeminformation.ChassisData) => any): Prom
|
||||
|
||||
export function time(): Systeminformation.TimeData;
|
||||
export function osInfo(cb?: (data: Systeminformation.OsData) => any): Promise<Systeminformation.OsData>;
|
||||
export function versions(cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
|
||||
export function versions(apps?: string, cb?: (data: Systeminformation.VersionData) => any): Promise<Systeminformation.VersionData>;
|
||||
export function shell(cb?: (data: string) => any): Promise<string>;
|
||||
export function uuid(cb?: (data: Systeminformation.UuidData) => any): Promise<Systeminformation.UuidData>;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user