mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Restructure files and add missing declarations * Add JQuery declarations * Restructure tests * Add carousel tests * Add more tests and missing JQuery declarations * Add waves declaration and a test * Add static init methods and tests * allow jquery and cash object to be passed to init * Remove redundant reference * Clean up * Clean up * Clean up and add tests * Clean up and add tests
26 lines
560 B
TypeScript
26 lines
560 B
TypeScript
/// <reference path="./common.d.ts" />
|
|
|
|
declare namespace M {
|
|
class Range extends Component<undefined> {
|
|
/**
|
|
* Get Instance
|
|
*/
|
|
static getInstance(elem: Element): Range;
|
|
|
|
/**
|
|
* Init Range
|
|
*/
|
|
static init(els: Element, options?: Partial<undefined>): Range;
|
|
|
|
/**
|
|
* Init Ranges
|
|
*/
|
|
static init(els: MElements, options?: Partial<undefined>): Range[];
|
|
}
|
|
}
|
|
|
|
interface JQuery {
|
|
range(): JQuery;
|
|
range(method: keyof Pick<M.Range, "destroy">): JQuery;
|
|
}
|