Skip to content

Commit 3377792

Browse files
Merge pull request #5 from NativeScript/milanov/add-more-methods-to-sys-info
Add more methods to sys info
2 parents 3633c1b + 273b5d8 commit 3377792

18 files changed

+1127
-2542
lines changed

lib/constants.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export class Constants {
2+
public static ANDROID_PLATFORM_NAME = "Android";
3+
public static IOS_PLATFORM_NAME = "iOS";
4+
public static SUPPORTED_PLATFORMS = [Constants.ANDROID_PLATFORM_NAME, Constants.IOS_PLATFORM_NAME];
5+
}

lib/declarations.d.ts

+40
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,46 @@ interface ISpawnFromEventOptions {
2323
ignoreError?: boolean;
2424
}
2525

26+
/**
27+
* Describes single registry available for search.
28+
*/
29+
interface IHiveId {
30+
/**
31+
* Name of the registry that will be checked.
32+
*/
33+
registry: string;
34+
}
35+
36+
/**
37+
* Describes available for search registry ids.
38+
*/
39+
interface IHiveIds {
40+
/**
41+
* HKEY_LOCAL_MACHINE
42+
*/
43+
HKLM: IHiveId;
44+
45+
/**
46+
* HKEY_CURRENT_USER
47+
*/
48+
HKCU: IHiveId;
49+
50+
/**
51+
* HKEY_CLASSES_ROOT
52+
*/
53+
HKCR: IHiveId;
54+
55+
/**
56+
* HKEY_CURRENT_CONFIG
57+
*/
58+
HKCC: IHiveId;
59+
60+
/**
61+
* HKEY_USERS
62+
*/
63+
HKU: IHiveId;
64+
}
65+
2666
interface IDictionary<T> {
2767
[key: string]: T
2868
}

0 commit comments

Comments
 (0)