Fixed #1701 - TS Typings for TerminalService are incorrect
parent
ad8e2796f7
commit
55c92d056f
|
@ -1,8 +1,11 @@
|
||||||
declare class TerminalService {
|
type TerminalServiceActionType = 'command' | 'response';
|
||||||
$on(action: string, fn: any): any;
|
|
||||||
$emit(action: string, params?: any): any;
|
export interface TerminalServiceOptions {
|
||||||
$off(action: string, id: number): void;
|
on(action: TerminalServiceActionType, fn: any): void;
|
||||||
$subscribed(action: string): boolean;
|
emit(action: TerminalServiceActionType, params?: any): void;
|
||||||
|
off(action: TerminalServiceActionType, fn: any): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default TerminalService;
|
declare const TerminalService: TerminalServiceOptions;
|
||||||
|
|
||||||
|
export default TerminalService;
|
||||||
|
|
Loading…
Reference in New Issue