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:
parent
10fb749865
commit
d4f133bf7e
9
index.d.ts
vendored
9
index.d.ts
vendored
@ -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
Block a user