Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
haoqu.ma
/
gotty
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 46a8b006
authored
Aug 23, 2017
by
Iwasaki Yudai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typing of hterm
1 parent
48c91151
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
js/typings/libapps/index.d.ts
js/typings/libapps/index.d.ts
View file @
46a8b00
export
namespace
hterm
{
export
interface
Terminal
{
export
declare
namespace
hterm
{
export
class
Terminal
{
io
:
IO
;
onTerminalReady
:
()
=>
void
;
constructor
();
getPrefs
():
Prefs
;
decorate
(
HTMLElement
);
installKeyboard
():
void
;
...
...
@@ -12,13 +13,7 @@ export namespace hterm {
softReset
():
void
;
}
export
interface
TerminalConstructor
{
new
():
Terminal
;
():
Terminal
;
}
export
interface
IO
{
export
class
IO
{
writeUTF8
:
((
data
:
string
)
=>
void
);
writeUTF16
:
((
data
:
string
)
=>
void
);
onVTKeystroke
:
((
data
:
string
)
=>
void
)
|
null
;
...
...
@@ -30,15 +25,14 @@ export namespace hterm {
showOverlay
(
message
:
string
,
timeout
:
number
|
null
);
}
export
interface
Prefs
{
export
class
Prefs
{
set
(
key
:
string
,
value
:
string
):
void
;
}
export
var
Terminal
:
TerminalConstructor
;
export
var
defaultStorage
:
lib
.
Storage
;
}
export
namespace
lib
{
export
declare
namespace
lib
{
export
interface
Storage
{
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment