• Robert Knight's avatar
    Add missing types for PortRPC method handlers · 9ea1e6d7
    Robert Knight authored
    Previously the arguments of the callback passed to `PortRPC.on` were
    inferred as `any`. Make the callback type generic so that the caller is
    forced to specify what types the arguments have.
    
    Internally within PortRPC, use `unknown` rather than `any` for RPC
    method arguments where possible.
    
    Note that this change does not ensure that an RPC method is called (via `call`)
    using arguments of the same types that the handler expects, but at least it is
    now easier to check that the `call` and `on` uses match up and that arguments
    are typed within the handler.
    9ea1e6d7
Name
Last commit
Last update
..
anchoring Loading commit data...
components Loading commit data...
config Loading commit data...
integrations Loading commit data...
test Loading commit data...
util Loading commit data...
.eslintrc.js Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
bucket-bar-client.js Loading commit data...
bucket-bar.js Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.js Loading commit data...
highlighter.js Loading commit data...
hypothesis-injector.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
notebook.js Loading commit data...
range-util.js Loading commit data...
selection-observer.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.js Loading commit data...
toolbar.js Loading commit data...