File tree 4 files changed +33
-2
lines changed
4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ bin/nativescript
18
18
bin /* .cmd
19
19
20
20
lib /** /* .ts
21
+ ! lib /** /* .d.ts
21
22
lib /** /* .js.map
22
23
23
24
test /
@@ -27,4 +28,6 @@ scratch/
27
28
* .suo
28
29
.travis.yml
29
30
docs /html /
30
- dev /
31
+ dev /
32
+
33
+ tscommand * .tmp.txt
Original file line number Diff line number Diff line change 1
- // Entry point
1
+ import * as Promise from "bluebird" ;
2
+ import { ChildProcess } from "./wrappers/child-process" ;
3
+ import { SysInfo } from "./sys-info" ;
2
4
5
+ let childProcess = new ChildProcess ( ) ;
6
+ let sysInfo = new SysInfo ( childProcess ) ;
7
+
8
+ function getJavaVersion ( ) : Promise < string > {
9
+ return sysInfo . getJavaVersion ( ) ;
10
+ } ;
11
+
12
+ function getJavaCompilerVersion ( ) : Promise < string > {
13
+ return sysInfo . getJavaCompilerVersion ( ) ;
14
+ } ;
15
+
16
+ export {
17
+ getJavaVersion ,
18
+ getJavaCompilerVersion
19
+ } ;
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"description" : " Library that helps identifying if the environment can be used for development of {N} apps." ,
5
5
"main" : " lib/index.js" ,
6
+ "types" : " ./typings/nativescript-doctor.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " echo \" Error: no test specified\" && exit 1"
8
9
},
Original file line number Diff line number Diff line change
1
+ /// <reference path="../lib/definitions/bluebird.d.ts" />
2
+
3
+ import * as Promise from "bluebird" ;
4
+
5
+ declare namespace NativeScriptDoctor {
6
+ export function getJavaVersion ( ) : Promise < string > ;
7
+ export function getJavaCompilerVersion ( ) : Promise < string > ;
8
+ }
9
+
10
+ export = NativeScriptDoctor ;
You can’t perform that action at this time.
0 commit comments