|
1 | | -// base-component v1.0.6 https://github.com/viewdir/base-component#readme |
2 | | -interface Window { |
3 | | - _Components: any; |
4 | | -} |
5 | | - |
6 | | -// remove if https://github.com/scottcorgan/tiny-emitter/pull/14 is merged |
7 | | -interface EventEmitter { |
8 | | - on (event: string, callback: Function, ctx?: any): EventEmitter; |
9 | | - once (event: string, callback: Function, ctx?: any): EventEmitter; |
10 | | - emit (event: string, ...args: any[]): EventEmitter; |
11 | | - off (event: string, callback?: Function): EventEmitter; |
12 | | -} |
13 | | - |
14 | | -declare var TinyEmitter: any; |
15 | | -declare namespace _Components { |
16 | | - class BaseComponent implements IBaseComponent { |
17 | | - options: IBaseComponentOptions; |
18 | | - protected _$element: JQuery; |
19 | | - constructor(options: IBaseComponentOptions); |
20 | | - protected _init(): boolean; |
21 | | - protected _getDefaultOptions(): IBaseComponentOptions; |
22 | | - _emit(event: string, ...args: any[]): EventEmitter; |
23 | | - protected _resize(): void; |
24 | | - databind(data?: any): void; |
25 | | - } |
26 | | - function applyMixins(derivedCtor: any, baseCtors: any[]): void; |
27 | | -} |
28 | | - |
29 | | -declare namespace _Components { |
30 | | - interface IBaseComponent { |
31 | | - options: IBaseComponentOptions; |
32 | | - databind(data?: any): void; |
33 | | - } |
34 | | -} |
35 | | - |
36 | | -declare namespace _Components { |
37 | | - interface IBaseComponentOptions { |
38 | | - element?: string; |
39 | | - } |
40 | | -} |
41 | | - |
42 | 1 | // Type definitions for core-js v0.9.7 |
43 | 2 | // Project: https://github.com/zloirock/core-js/ |
44 | 3 | // Definitions by: Ron Buckton <http://github.com/rbuckton> |
@@ -8392,6 +8351,45 @@ declare module "constants" { |
8392 | 8351 | export var X_OK: number; |
8393 | 8352 | export var UV_UDP_REUSEADDR: number; |
8394 | 8353 | } |
| 8354 | +interface Window { |
| 8355 | + _Components: any; |
| 8356 | +} |
| 8357 | + |
| 8358 | +interface EventEmitter { |
| 8359 | + on (event: string, callback: Function, ctx?: any): EventEmitter; |
| 8360 | + once (event: string, callback: Function, ctx?: any): EventEmitter; |
| 8361 | + emit (event: string, ...args: any[]): EventEmitter; |
| 8362 | + off (event: string, callback?: Function): EventEmitter; |
| 8363 | +} |
| 8364 | + |
| 8365 | +declare var TinyEmitter: any; |
| 8366 | +declare namespace _Components { |
| 8367 | + class BaseComponent implements IBaseComponent { |
| 8368 | + options: IBaseComponentOptions; |
| 8369 | + protected _$element: JQuery; |
| 8370 | + constructor(options: IBaseComponentOptions); |
| 8371 | + protected _init(): boolean; |
| 8372 | + protected _getDefaultOptions(): IBaseComponentOptions; |
| 8373 | + _emit(event: string, ...args: any[]): EventEmitter; |
| 8374 | + protected _resize(): void; |
| 8375 | + databind(data?: any): void; |
| 8376 | + } |
| 8377 | + function applyMixins(derivedCtor: any, baseCtors: any[]): void; |
| 8378 | +} |
| 8379 | + |
| 8380 | +declare namespace _Components { |
| 8381 | + interface IBaseComponent { |
| 8382 | + options: IBaseComponentOptions; |
| 8383 | + databind(data?: any): void; |
| 8384 | + } |
| 8385 | +} |
| 8386 | + |
| 8387 | +declare namespace _Components { |
| 8388 | + interface IBaseComponentOptions { |
| 8389 | + element?: string; |
| 8390 | + } |
| 8391 | +} |
| 8392 | + |
8395 | 8393 | // manifesto.js v2.0.3 https://github.com/viewdir/manifesto |
8396 | 8394 | declare module exjs { |
8397 | 8395 | } |
@@ -10006,6 +10004,26 @@ declare namespace Manifold { |
10006 | 10004 | } |
10007 | 10005 | } |
10008 | 10006 |
|
| 10007 | +// component-specific definitions |
| 10008 | + |
| 10009 | +interface JQuery { |
| 10010 | + // jsviews |
| 10011 | + link: any; |
| 10012 | + render: any; |
| 10013 | + // unevent |
| 10014 | + on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any, wait: Number): JQuery; |
| 10015 | + // plugins |
| 10016 | + checkboxButton(onClicked: (checked: boolean) => void); |
| 10017 | + swapClass(removeClass: string, addClass: string): void; |
| 10018 | +} |
| 10019 | + |
| 10020 | +interface JQueryStatic { |
| 10021 | + // jsviews |
| 10022 | + observable: any; |
| 10023 | + templates: any; |
| 10024 | + views: any; |
| 10025 | + view: any; |
| 10026 | +} |
10009 | 10027 | declare namespace IIIFComponents { |
10010 | 10028 | class GalleryComponent extends _Components.BaseComponent implements IGalleryComponent { |
10011 | 10029 | options: IGalleryComponentOptions; |
|
0 commit comments