I generally disallow explicit any in code bases I work on and prefer unknown over any as it enforces type guards.
However, with capnweb specifying unknown as the return type for any method results in never return types when using RpcStub. Initially discovered as we had a Record<string, unknown> in a nested type (which is also broken).
I generally disallow explicit any in code bases I work on and prefer
unknownoveranyas it enforces type guards.However, with capnweb specifying
unknownas the return type for any method results inneverreturn types when using RpcStub. Initially discovered as we had aRecord<string, unknown>in a nested type (which is also broken).