Open turadg opened 1 year ago
@turadg you asked if we can do better than any
as a typedef for passable
. I did some relevant work in...
The .ts definition there is for OCapn value, but it's isomorphic to passable (with the exception that OCapn hasn't decided whether to distinguish promises from remotables). There's also an attempt at doing passable in .proto.
I think I did one in idris nearby, fwiw... Passable.idr https://github.com/ocapn/ocapn/issues/5#issuecomment-1478965669
Describe the bug
Most or all of the Store types don't report type errors because they're parameterized with
any
(Key
and/orPassable
which are defined as any)Were this bug not present we would have avoided these bugs (partial list):
To Reproduce
For example,
Expected behavior
Invalid type usage shows and error and fails CI
Additional context
Requires changes in Endo, including https://github.com/endojs/endo/issues/1488