pouchorm icon indicating copy to clipboard operation
pouchorm copied to clipboard

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

Open g-schmitz opened this issue 9 months ago • 2 comments

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<IModel> = PouchDB.Replication.SyncResult<IModel>; [ng] ~~~~~~ [ng] [ng] node_modules/pouchorm/dist/types.d.ts:36:32 [ng] 36 export declare type SyncResult<IModel> = PouchDB.Replication.SyncResult<IModel>; [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<IModel> = PouchDB.Replication.Sync<IModel>;

g-schmitz avatar May 02 '24 07:05 g-schmitz

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

iyobo avatar Aug 20 '24 04:08 iyobo

Also what version of typescript and pouchORM are you using?

iyobo avatar Aug 23 '24 16:08 iyobo