1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-11-16 11:18:37 +00:00

fix #532: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier, and twemoji.parse return type

This commit is contained in:
Harold Thetiot 2022-03-14 14:39:00 +01:00 committed by Justine De Caires
parent 10fb749865
commit d4f133bf7e

7
index.d.ts vendored
View File

@ -1,4 +1,4 @@
interface TwemojiOptions { declare interface TwemojiOptions {
/** /**
* Default: MaxCDN * Default: MaxCDN
*/ */
@ -29,13 +29,12 @@ interface TwemojiOptions {
attributes?(): void; attributes?(): void;
} }
const twemoji: { export const twemoji: {
convert: { convert: {
fromCodePoint(hexCodePoint: string): string; fromCodePoint(hexCodePoint: string): string;
toCodePoint(utf16surrogatePairs: 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;