mirror of
https://github.com/twitter/twemoji.git
synced 2024-06-29 01:18:52 +00:00
Compare commits
6 Commits
10fb749865
...
36bac6943f
Author | SHA1 | Date | |
---|---|---|---|
|
36bac6943f | ||
|
5c22969a94 | ||
|
fffa763019 | ||
|
9110fc85c0 | ||
|
34e6b4a667 | ||
|
d4f133bf7e |
|
@ -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
10
index.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "14.0.0",
|
||||
"version": "14.0.1",
|
||||
"name": "twemoji",
|
||||
"license": [
|
||||
"MIT",
|
||||
|
|
Loading…
Reference in New Issue
Block a user