52 lines
2.3 KiB
TypeScript
52 lines
2.3 KiB
TypeScript
/// <reference types="node" />
|
|
import "jsrender";
|
|
declare global {
|
|
function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
interface Array<T> {
|
|
remove(elem?: T): boolean;
|
|
last?(): T;
|
|
pop_front(): T | undefined;
|
|
toggle(entry: T): boolean;
|
|
}
|
|
interface JSON {
|
|
map_to<T>(object: T, json: any, variables?: string | string[], validator?: (map_field: string, map_value: string) => boolean, variable_direction?: number): number;
|
|
map_field_to<T>(object: T, value: any, field: string): boolean;
|
|
}
|
|
type JQueryScrollType = "height" | "width";
|
|
interface JQuery<TElement = HTMLElement> {
|
|
renderTag(values?: any): JQuery<TElement>;
|
|
hasScrollBar(direction?: JQueryScrollType): boolean;
|
|
visible_height(): number;
|
|
visible_width(): number;
|
|
firstParent(selector: string): JQuery;
|
|
}
|
|
interface JQueryStatic<TElement extends Node = HTMLElement> {
|
|
spawn<K extends keyof HTMLElementTagNameMap>(tagName: K): JQuery<HTMLElementTagNameMap[K]>;
|
|
}
|
|
interface Window {
|
|
__REACT_DEVTOOLS_GLOBAL_HOOK__: any;
|
|
readonly webkitAudioContext: typeof AudioContext;
|
|
readonly AudioContext: typeof OfflineAudioContext;
|
|
readonly OfflineAudioContext: typeof OfflineAudioContext;
|
|
readonly webkitOfflineAudioContext: typeof OfflineAudioContext;
|
|
readonly RTCPeerConnection: typeof RTCPeerConnection;
|
|
readonly Pointer_stringify: any;
|
|
readonly require: typeof require;
|
|
}
|
|
const __non_webpack_require__: typeof require;
|
|
interface Navigator {
|
|
browserSpecs: {
|
|
name: string;
|
|
version: string;
|
|
};
|
|
mozGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
|
webkitGetUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;
|
|
}
|
|
interface ObjectConstructor {
|
|
isSimilar(a: any, b: any): boolean;
|
|
}
|
|
}
|
|
declare const _default: {};
|
|
export = _default;
|