forked from lifubang/nodecmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
53 lines (45 loc) · 1.45 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
declare module 'node-stdio' {
/**
* Read an int number from the standard input console
* @returns int
*/
export function readInt() : number
/**
* Read a float number from the standard input console
* @returns double
*/
export function readDouble() : number
/**
* Read a line from the standard input console, the maxium length is 1024.
* @returns String -- Not more than 1024 characters.
*/
export function read_line() : string
/**
* Read a line from the standard input console, the maxium length is 1024.
* @returns String -- Not more than 1024 characters.
*/
export function readline() : string
/**
* Read a line from the standard input console, the maxium length is 1024.
* @returns String -- Not more than 1024 characters.
*/
export function readLine() : string
/**
* Read n chars from the standard input console, the maxium length is n unless meets the enter key.
* @param Number n
* @returns String
*/
export function gets(n : Number) : string
/**
* Ouput some text to the standard out device without an enter key.
* @param sth
* @param args
*/
export function printsth(sth : any, ...args) : void
/**
* Ouput some text to the standard out device without an enter key, like `console.log`.
* @param sth
* @param args
*/
export function print(sth : any, ...args) : void
}