forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
status-bar.d.ts
32 lines (27 loc) · 893 Bytes
/
status-bar.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
// Type definitions for status-bar
// Project: https://github.com/atom/status-bar
// Definitions by: vvakame <https://github.com/vvakame/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../space-pen/space-pen.d.ts" />
/// <reference path="../text-buffer/text-buffer.d.ts" />
declare module StatusBar {
interface IStatusBarViewStatic {
content():any;
new(...args:any[]):IStatusBarView;
}
interface IStatusBarView extends View {
initialize():any;
attach():any;
destroy():any;
appendLeft(view:View):any;
prependLeft(view:View):any;
appendRight(view:View):any;
prependRight(view:View):any;
getActiveBuffer():TextBuffer.ITextBuffer;
getActiveItem():any;
storeActiveBuffer():TextBuffer.ITextBuffer;
subscribeToBuffer(event:string, callback:Function):any;
subscribeAllToBuffer():any[];
unsubscribeAllFromBuffer():any[];
}
}