Skip to content

unknown inference is broken #118

@sfc-gh-tkojima

Description

@sfc-gh-tkojima

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions