File tree Expand file tree Collapse file tree 4 files changed +33
-2
lines changed
Expand file tree Collapse file tree 4 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ bin/nativescript
1818bin /* .cmd
1919
2020lib /** /* .ts
21+ ! lib /** /* .d.ts
2122lib /** /* .js.map
2223
2324test /
@@ -27,4 +28,6 @@ scratch/
2728* .suo
2829.travis.yml
2930docs /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" ;
24
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 33 "version" : " 0.0.1" ,
44 "description" : " Library that helps identifying if the environment can be used for development of {N} apps." ,
55 "main" : " lib/index.js" ,
6+ "types" : " ./typings/nativescript-doctor.d.ts" ,
67 "scripts" : {
78 "test" : " echo \" Error: no test specified\" && exit 1"
89 },
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