1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-11-02 11:30:12 +00:00

removed type alias

This commit is contained in:
Alexey Molchan 2022-04-30 09:40:40 +03:00 committed by Justine De Caires
parent fb4a4dd9dd
commit 000dc9a7c6

4
index.d.ts vendored
View File

@ -11,8 +11,6 @@ type ParseCallback = (icon: string, options: object, variant: string) => string
type ReplacerFunction = (substring: string, ...args: any[]) => string;
type Replacer = string | ReplacerFunction;
interface TwemojiOptions {
/**
* Default: MaxCDN
@ -87,7 +85,7 @@ type Twemoji = {
toCodePoint(utf16surrogatePairs: string, sep?: string): string;
};
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;
onerror(): void;
};