3 ms·
Thanks. Seems like most TypeScript projects creates as index.ts file that just exports whatever is needed and the the compiled index.js is exposed in the "main"
by fetbaffe 10y ago
Thanks. Seems like most TypeScript projects creates as index.ts file that just exports whatever is needed and the the compiled index.js is exposed in the "main" option. And if I understand correctly that will give you a index.d.ts that you can refer in the "typings" option in package.json.