mirror of
https://github.com/twitter/twemoji.git
synced 2025-01-30 06:32:37 +00:00
declare twemoji type and twemoji module in index.d.ts
This commit is contained in:
parent
34e6b4a667
commit
9110fc85c0
9
index.d.ts
vendored
9
index.d.ts
vendored
@ -29,12 +29,15 @@ declare interface TwemojiOptions {
|
||||
attributes?(): void;
|
||||
}
|
||||
|
||||
declare const twemoji: {
|
||||
declare type twemoji = {
|
||||
convert: {
|
||||
fromCodePoint(hexCodePoint: string): string;
|
||||
toCodePoint(utf16surrogatePairs: string): string;
|
||||
};
|
||||
parse(node: HTMLElement | string, options?: TwemojiOptions): string;
|
||||
parse(node: HTMLElement | string, options?: TwemojiOptions): void;
|
||||
};
|
||||
|
||||
export default twemoji;
|
||||
declare module "twemoji" {
|
||||
const twemoji: twemoji;
|
||||
export default twemoji;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user