1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-11-02 11:30:12 +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

9
index.d.ts vendored
View File

@ -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;