mirror of
https://github.com/twitter/twemoji.git
synced 2025-04-29 02:47:25 +09:00
declare twemoji type and twemoji module in index.d.ts
This commit is contained in:
parent
34e6b4a667
commit
9110fc85c0
9
index.d.ts
vendored
9
index.d.ts
vendored
@ -29,12 +29,15 @@ declare interface TwemojiOptions {
|
|||||||
attributes?(): void;
|
attributes?(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare const twemoji: {
|
declare type 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): string;
|
parse(node: HTMLElement | string, options?: TwemojiOptions): void;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default twemoji;
|
declare module "twemoji" {
|
||||||
|
const twemoji: twemoji;
|
||||||
|
export default twemoji;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user