mirror of
https://github.com/twitter/twemoji.git
synced 2024-11-16 11:18:37 +00: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 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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user