forked from tameemsafi/typewriterjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
30 lines (27 loc) · 859 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
declare module "typewriter-effect/core" {
export interface Options {
strings: ?Array<string>,
cursor: string,
delay: 'natural' | number,
deleteSpeed: 'natural' | number,
loop: boolean,
autoStart: boolean,
devMode: boolean,
wrapperClassName: string,
cursorClassName: string,
}
class Typewriter {
constructor(container: string | HTMLElement, options: Options);
start(): Typewriter;
stop(): Typewriter;
pause(): Typewriter;
pauseFor(ms: number): Typewriter;
typeString(string: string): Typewriter;
deleteAll(speed?: 'natural' | number): Typewriter;
changeDeleteSpeed(speed: number): Typewriter;
changeDelay(delay: number): Typewriter;
deleteChars(amount: number): Typewriter;
callFunction(callback: Function, thisArg: Object): Typewriter;
}
export default Typewriter;
}