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:
parent
67af3ab5db
commit
fb23d9162e
58
twemoji.d.ts
vendored
Normal file
58
twemoji.d.ts
vendored
Normal 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: {
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user