warp-contracts / warp-contracts-lmdb

A lmdb based cache implementation for Warp SDK
MIT License
4 stars 3 forks source link

bug(types): types not provided in named exports #27

Open dtfiedler opened 9 months ago

dtfiedler commented 9 months ago

When using type: module in tsconfig.json

 Could not find a declaration file for module 'warp-contracts-lmdb'. 'node_modules/warp-contracts-lmdb/lib/cjs/index.js' implicitly has an 'any' type.
  There are types at '/node_modules/warp-contracts-lmdb/lib/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'warp-contracts-lmdb' library may need to update its package.json or typings.

24 import { LmdbCache } from 'warp-contracts-lmdb';
                             ~~~~~~~~~~~~~~~~~~~~~
dtfiedler commented 9 months ago

PR: https://github.com/warp-contracts/warp-contracts-lmdb/pull/28