1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-15 03:35:16 +00:00

Fix #340 Support Typescript, add twemoji.d.ts

This commit is contained in:
teeoo 2019-03-12 10:56:03 +08:00
parent 67af3ab5db
commit fb23d9162e

58
twemoji.d.ts vendored Normal file
View File

@ -0,0 +1,58 @@
export const base: string;
export const className: string;
export const ext: string;
export const size: string;
export function onerror(): void;
export function parse(what: any, how?: object): any;
export function replace(text: any, callback: any): any;
export function test(text: any): any;
export namespace convert {
function fromCodePoint(codepoint: any): any;
function toCodePoint(unicodeSurrogates: any, sep: any): any;
namespace fromCodePoint {
const prototype: {
};
}
namespace toCodePoint {
const prototype: {
};
}
}
export namespace onerror {
const prototype: {
};
}
export namespace parse {
const prototype: {
};
}
export namespace replace {
const prototype: {
};
}
export namespace test {
const prototype: {
};
}