mirror of
https://github.com/twitter/twemoji.git
synced 2025-04-29 02:47:25 +09:00
removed type alias
This commit is contained in:
parent
fb4a4dd9dd
commit
000dc9a7c6
4
index.d.ts
vendored
4
index.d.ts
vendored
@ -11,8 +11,6 @@ type ParseCallback = (icon: string, options: object, variant: string) => string
|
|||||||
|
|
||||||
type ReplacerFunction = (substring: string, ...args: any[]) => string;
|
type ReplacerFunction = (substring: string, ...args: any[]) => string;
|
||||||
|
|
||||||
type Replacer = string | ReplacerFunction;
|
|
||||||
|
|
||||||
interface TwemojiOptions {
|
interface TwemojiOptions {
|
||||||
/**
|
/**
|
||||||
* Default: MaxCDN
|
* Default: MaxCDN
|
||||||
@ -87,7 +85,7 @@ type Twemoji = {
|
|||||||
toCodePoint(utf16surrogatePairs: string, sep?: string): string;
|
toCodePoint(utf16surrogatePairs: string, sep?: string): string;
|
||||||
};
|
};
|
||||||
parse<T extends string | HTMLElement>(node: T, options?: TwemojiOptions | ParseCallback): T;
|
parse<T extends string | HTMLElement>(node: T, options?: TwemojiOptions | ParseCallback): T;
|
||||||
replace(text: string, replacer: Replacer): string;
|
replace(text: string, replacer: string | ReplacerFunction): string;
|
||||||
test(text: string): boolean;
|
test(text: string): boolean;
|
||||||
onerror(): void;
|
onerror(): void;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user