iyobo / pouchorm

The definitive ORM for working with PouchDB. Native support for Typescript.
MIT License
42 stars 4 forks source link

Type 'IModel' does not satisfy the constraint '{}' #26

Open g-schmitz opened 7 months ago

g-schmitz commented 7 months ago

I'm getting the following error:

Error: node_modules/pouchorm/dist/types.d.ts:36:73 - error TS2344: Type 'IModel' does not satisfy the constraint '{}'. [ng] [ng] 36 export declare type SyncResult = PouchDB.Replication.SyncResult; [ng] ~~ [ng] [ng] node_modules/pouchorm/dist/types.d.ts:36:32 [ng] 36 export declare type SyncResult = PouchDB.Replication.SyncResult; [ng] ~~ [ng] This type parameter might need an extends {} constraint. [ng] [ng] [ng] Error: node_modules/pouchorm/dist/types.d.ts:37:61 - error TS2344: Type 'IModel' does not satisfy the constraint '{}'. [ng] [ng] 37 export declare type Sync = PouchDB.Replication.Sync;

iyobo commented 3 months ago

Hey I can't seem to replicate that. Just pushed a new version v2.1.3. Is it still an issue?

iyobo commented 3 months ago

Also what version of typescript and pouchORM are you using?