ts: Convert emoji.js to TypeScript.

Converted `emoji.js` to TypeScript by adding relevant type definitions,
also modified `target` option in our tsconfig to 'ESNext' so that types
for object methods like `hasOwn` which is being used in `emoji.js` are
included.
This commit is contained in:
Lalit
2023-03-26 12:16:21 +05:30
committed by Tim Abbott
parent 6f46c4830f
commit bbf2f5f91f
4 changed files with 127 additions and 34 deletions

View File

@@ -14,7 +14,7 @@
/* Basic options */
"noEmit": true,
"target": "ES2020",
"target": "ESNext",
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,