transaction.d.ts has TS error
Closed this issue · 2 comments
Swahvay commented
Type 'Builder<Ent<TViewer>, TViewer, any>' does not satisfy the constraint 'Builder<Ent<TViewer>, Viewer<any, any>, any>'.
Types of property 'ent' are incompatible.
Type 'EntConstructor<Ent<TViewer>, TViewer>' is not assignable to type 'EntConstructor<Ent<TViewer>, Viewer<any, any>>'.
Type 'Viewer<any, any>' is not assignable to type 'TViewer'.
'Viewer<any, any>' is assignable to the constraint of type 'TViewer', but 'TViewer' could be instantiated with a different subtype of constraint 'Viewer<Ent<any> | null, ID | null>'.
There is also a build error in operations.d.ts:
Property 'builder' in type 'RawQueryOperation<TEnt, TViewer>' is not assignable to the same property in base type 'DataOperation<TEnt>'.
Type 'Builder<TEnt, TViewer, MaybeNull<TEnt>>' is not assignable to type 'Builder<TEnt, Viewer<Ent<any> | null, ID | null>, MaybeNull<TEnt>>'.
Types of property 'ent' are incompatible.
Type 'EntConstructor<TEnt, TViewer>' is not assignable to type 'EntConstructor<TEnt, Viewer<Ent<any> | null, ID | null>>'.
Type 'Viewer<Ent<any> | null, ID | null>' is not assignable to type 'TViewer'.
'Viewer<Ent<any> | null, ID | null>' is assignable to the constraint of type 'TViewer', but 'TViewer' could be instantiated with a different subtype of constraint 'Viewer<Ent<any> | null, ID | null>'.
This is using node v19.4.0 and TS 5.2.2
This doesn't really matter to me since I can just do "skipLibCheck": true
in tsconfig
, but it probably would be something worth fixing.
lolopinto commented
which @snowtop/ent
version?
lolopinto commented
nvm. found it on latest