mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-04-01 19:24:27 +00:00
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!