mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
34 lines
890 B
TypeScript
34 lines
890 B
TypeScript
// Type definitions for status-bar
|
|
// Project: https://github.com/atom/status-bar
|
|
// Definitions by: vvakame <https://github.com/vvakame>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="space-pen" />
|
|
/// <reference types="text-buffer" />
|
|
|
|
declare namespace 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[];
|
|
}
|
|
}
|