mirror of https://github.com/twitter/twemoji
declare twemoji type and twemoji module in index.d.ts
parent
34e6b4a667
commit
9110fc85c0
|
@ -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…
Reference in New Issue