1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-29 01:18:52 +00:00

Compare commits

...

6 Commits

3 changed files with 8 additions and 6 deletions

View File

@ -22,7 +22,7 @@ This guarantees that you will always use the latest version of the library.
If, instead, you'd like to include the latest version explicitly, you can add the following tag:
```html
<script src="https://twemoji.maxcdn.com/v/14.0.0/twemoji.min.js" integrity="sha384-L1ViA0v9uyiBlZsOGT/z9RVgs+Gku2SDCuzaAoLco0hEgfYZYiztb+pRgWYHkDwb" crossorigin="anonymous"></script>
<script src="https://twemoji.maxcdn.com/v/14.0.1/twemoji.min.js" integrity="sha384-9XmaIHs67kvwAL3GE7nu7tddcROD/RBKYbYZcPd8KsVPdrA3U1574EW2PLtdTxDN" crossorigin="anonymous"></script>
```
### Download

10
index.d.ts vendored
View File

@ -1,4 +1,4 @@
interface TwemojiOptions {
declare interface TwemojiOptions {
/**
* Default: MaxCDN
*/
@ -29,7 +29,7 @@ interface TwemojiOptions {
attributes?(): void;
}
const twemoji: {
declare type Twemoji = {
convert: {
fromCodePoint(hexCodePoint: string): string;
toCodePoint(utf16surrogatePairs: string): string;
@ -37,5 +37,7 @@ const twemoji: {
parse(node: HTMLElement | string, options?: TwemojiOptions): void;
};
export default twemoji;
declare module 'twemoji' {
const twemoji: Twemoji;
export default twemoji;
}

View File

@ -1,5 +1,5 @@
{
"version": "14.0.0",
"version": "14.0.1",
"name": "twemoji",
"license": [
"MIT",