mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
* Fix cleave.js (Cleave is a class, not a function) See examples at https://github.com/nosir/cleave.js * Add whitespace
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
// Type definitions for cleave.js 1.0
|
|
// Project: https://github.com/nosir/cleave.js
|
|
// Definitions by: C Lentfort <https://github.com/clentfort>, J Giancono <https://github.com/jasongi-at-sportsbet>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { CleaveOptions } from './options';
|
|
|
|
declare class Cleave {
|
|
constructor(selector: string, options: CleaveOptions);
|
|
|
|
getRawValue(): string;
|
|
|
|
setRawValue(value: string): void;
|
|
|
|
getFormattedValue(): string;
|
|
|
|
destroy(): void;
|
|
|
|
setPhoneRegionCode(regionCode: string): void;
|
|
}
|
|
|
|
export = Cleave;
|