mirror of
https://github.com/twitter/twemoji.git
synced 2024-10-06 14:49:44 +00:00
Compare commits
No commits in common. "36bac6943fb39df00c9ba221263ea73b9445fa23" and "10fb74986530abe5e64c02fa839a821fa043c02e" have entirely different histories.
36bac6943f
...
10fb749865
@ -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:
|
If, instead, you'd like to include the latest version explicitly, you can add the following tag:
|
||||||
```html
|
```html
|
||||||
<script src="https://twemoji.maxcdn.com/v/14.0.1/twemoji.min.js" integrity="sha384-9XmaIHs67kvwAL3GE7nu7tddcROD/RBKYbYZcPd8KsVPdrA3U1574EW2PLtdTxDN" crossorigin="anonymous"></script>
|
<script src="https://twemoji.maxcdn.com/v/14.0.0/twemoji.min.js" integrity="sha384-L1ViA0v9uyiBlZsOGT/z9RVgs+Gku2SDCuzaAoLco0hEgfYZYiztb+pRgWYHkDwb" crossorigin="anonymous"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Download
|
### Download
|
||||||
|
10
index.d.ts
vendored
10
index.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
declare interface TwemojiOptions {
|
interface TwemojiOptions {
|
||||||
/**
|
/**
|
||||||
* Default: MaxCDN
|
* Default: MaxCDN
|
||||||
*/
|
*/
|
||||||
@ -29,7 +29,7 @@ declare interface TwemojiOptions {
|
|||||||
attributes?(): void;
|
attributes?(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare type Twemoji = {
|
const twemoji: {
|
||||||
convert: {
|
convert: {
|
||||||
fromCodePoint(hexCodePoint: string): string;
|
fromCodePoint(hexCodePoint: string): string;
|
||||||
toCodePoint(utf16surrogatePairs: string): string;
|
toCodePoint(utf16surrogatePairs: string): string;
|
||||||
@ -37,7 +37,5 @@ declare type Twemoji = {
|
|||||||
parse(node: HTMLElement | string, options?: TwemojiOptions): void;
|
parse(node: HTMLElement | string, options?: TwemojiOptions): void;
|
||||||
};
|
};
|
||||||
|
|
||||||
declare module 'twemoji' {
|
export default twemoji;
|
||||||
const twemoji: Twemoji;
|
|
||||||
export default twemoji;
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "14.0.1",
|
"version": "14.0.0",
|
||||||
"name": "twemoji",
|
"name": "twemoji",
|
||||||
"license": [
|
"license": [
|
||||||
"MIT",
|
"MIT",
|
||||||
|
Loading…
Reference in New Issue
Block a user