DefinitelyTyped/types/twemoji
Piotr Błażejewicz (Peter Blazejewicz) c2f36d4a1d
update(twemoji): add support for UMD module (#43841)
This is minor change, providing support for UMD module, allowing to use
the definition file directly in other scenarios.

- definition file change with namespace export
- document library export
- split tests for CommonJS and global code tests

Usage is promoted as UMD module via CDN:
https://github.com/twitter/twemoji#cdn-support

Use-case:
- vanilla JS
- TS configured to not emit, check JS for errors:

```js
/// <reference types="twemoji" />

window.addEventListener('DOMContentLoaded', event => {
    const div = document.createElement('div');
    div.textContent = 'I \u2764\uFE0F emoji!';
    document.body.appendChild(div);
    twemoji.parse(document.body);
});
```

Thanks!
2020-04-13 12:10:13 -07:00
..
test
index.d.ts
tsconfig.json
tslint.json