Public dispatch handle types are looser than the API suggests #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Public dispatch handle types are looser than the API suggests
The package works, but some public runtime handle fields are typed as plain
stringinstead of preserving the literal job metadata from the registry.Current behavior
dispatch()currently returns a handle effectively shaped like:Example
A consumer might reasonably expect:
But today these are all just string.
Why this matters
This weakens downstream narrowing and makes the API feel less typed than the rest of the package.
These examples currently fail:
And this does not preserve useful type information:
Expected direction
The dispatch handle should likely be generic over the selected job type, for example:
So a call like:
could return:
Scope
This is not a runtime bug. The package is consumable and works correctly.
This is a typing ergonomics issue in the public API.