Skip to content

Commit dacd5a0

Browse files
committed
Add typing for Console module
1 parent cc39b65 commit dacd5a0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

typings/console.d.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2022 Richard Lea
3+
*
4+
* This file is part of the Moddable SDK Tools.
5+
*
6+
* The Moddable SDK Tools is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* The Moddable SDK Tools is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with the Moddable SDK Tools. If not, see <http://www.gnu.org/licenses/>.
18+
*
19+
*/
20+
21+
/**
22+
* The `console` module uses `cli` modules to implement the terminal commands.
23+
*/
24+
declare module "console" {
25+
26+
/**
27+
* The `Console` class implements a serial terminal for debugging and diagnostic purposes.
28+
*/
29+
export class Console {
30+
receive(): void
31+
write(): void
32+
resume(): void
33+
suspend(): void
34+
prompt(): void
35+
line(...items: any): void
36+
}
37+
38+
export { Console as default };
39+
}

0 commit comments

Comments
 (0)