DefinitelyTyped/types/materialize-css/range.d.ts
Max a355d32369 materialize-css: Add missing declarations and tests (#25492)
* 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
2018-05-07 11:00:18 -07:00

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;
}