mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
24 lines
506 B
TypeScript
24 lines
506 B
TypeScript
declare interface Stats {
|
|
REVISION: number;
|
|
dom: HTMLDivElement;
|
|
addPanel( panel: Stats.Panel ): Stats.Panel;
|
|
showPanel( id: number ): void;
|
|
begin(): void;
|
|
end(): void;
|
|
update(): void;
|
|
domElement: HTMLDivElement;
|
|
setMode( id: number ): void;
|
|
}
|
|
|
|
declare function Stats(): Stats;
|
|
|
|
declare namespace Stats {
|
|
interface Panel {
|
|
dom: HTMLCanvasElement;
|
|
update( value: number, maxValue: number ): void;
|
|
}
|
|
|
|
function Panel( name?: string, fg?: string, bg?: string ): Panel;
|
|
}
|
|
|
|
export default Stats;
|