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

pull/499/merge
Harold Thetiot 2022-03-14 14:39:00 +01:00 committed by Justine De Caires
parent 10fb749865
commit d4f133bf7e
1 changed files with 4 additions and 5 deletions

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;