mirror of https://github.com/twitter/twemoji
fix #532: Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier, and twemoji.parse return type
parent
10fb749865
commit
d4f133bf7e
|
@ -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;
|
Loading…
Reference in New Issue