Skip to content

datastore-idb: Typings broken on helia #234

@pcfreak30

Description

@pcfreak30

on datastore-idb v2.1.2, the typings when passed to createHelia seem to be broken. Oddly blockstore-idb is fine.

error TS2769: No overload matches this call.
  Overload 1 of 2, '(init: HeliaInit<Libp2p<ServiceMap>>): Promise<Helia<Libp2p<ServiceMap>>>', gave the following error.
    Type 'IDBDatastore' is missing the following properties from type 'Datastore<{}, {}, {}, {}, {}, {}, {}, {}, {}, {}>': putMany, getMany, deleteMany
  Overload 2 of 2, '(init?: HeliaInit<Libp2p<{ dht: DualKadDHT; pubsub: PubSub<PubSubEvents>; }>> | undefined): Promise<Helia<Libp2p<{ dht: DualKadDHT; pubsub: PubSub<...>; }>>>', gave the following error.
    Type 'IDBDatastore' is not assignable to type 'Datastore<{}, {}, {}, {}, {}, {}, {}, {}, {}, {}>'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/author-inputNeeds input from the original author

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions