mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-31 18:54:28 +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
659 B
TypeScript
26 lines
659 B
TypeScript
/// <reference path="./common.d.ts" />
|
|
|
|
declare namespace M {
|
|
class CharacterCounter extends Component<undefined> {
|
|
/**
|
|
* Get Instance
|
|
*/
|
|
static getInstance(elem: Element): CharacterCounter;
|
|
|
|
/**
|
|
* Init CharacterCounter
|
|
*/
|
|
static init(els: Element, options?: Partial<undefined>): CharacterCounter;
|
|
|
|
/**
|
|
* Init CharacterCounters
|
|
*/
|
|
static init(els: MElements, options?: Partial<undefined>): CharacterCounter[];
|
|
}
|
|
}
|
|
|
|
interface JQuery {
|
|
characterCounter(method: keyof Pick<M.CharacterCounter, "destroy">): JQuery;
|
|
characterCounter(): JQuery;
|
|
}
|