You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(core): enforce SpecT result type on setRequestHandler (no loose-overload fallthrough)
The SpecT-typed overload's P constraint (StandardSchemaV1<SpecParams>) was too
tight to ever match real schemas, so calls always fell through to the loose
(method: string, schema, h: => Result) overload, silently accepting any return
type. Loosen overload 1's P to bare StandardSchemaV1 (params type still inferred
from the schema; only the result type is SpecT-constrained) and never-guard the
loose overload's method param against SpecRequests<SpecT> so spec-method calls
that don't satisfy the typed overload error instead of falling through. Same
guard on setNotificationHandler for symmetry. JSDoc updated; type tests added.
0 commit comments