jakearchibald / idb

IndexedDB, but with promises
https://www.npmjs.com/package/idb
ISC License
6.2k stars 348 forks source link

fix(ts): `moduleResolution: node12` compat #265

Closed aleclarson closed 2 years ago

aleclarson commented 2 years ago

TypeScript needs types condition when pkg.exports is defined

image

Source: https://github.com/microsoft/TypeScript/issues/33079#issuecomment-950214842

JuanM04 commented 2 years ago

Also fixes "moduleResolution": "node16" (released in TypeScript 4.7)

jakearchibald commented 2 years ago

Thank you! Sorry it took so long to get round to this.

jakearchibald commented 2 years ago

Published as 7.0.2