diff --git a/index.d.ts b/index.d.ts index 1c0b4cf0..3f34fb53 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,4 @@ -interface TwemojiOptions { +declare interface TwemojiOptions { /** * Default: MaxCDN */ @@ -29,13 +29,12 @@ interface TwemojiOptions { attributes?(): void; } -const twemoji: { +export const twemoji: { convert: { fromCodePoint(hexCodePoint: string): string; toCodePoint(utf16surrogatePairs: string): string; }; - parse(node: HTMLElement | string, options?: TwemojiOptions): void; + parse(node: HTMLElement | string, options?: TwemojiOptions): string; }; -export default twemoji; - +export default twemoji; \ No newline at end of file