• Robert Knight's avatar
    Add type information for API call methods. · 12042882
    Robert Knight authored
    Add `/** @type {APICall<...>} */` annotations to methods in `APIService`
    to specify parameter, body and return types for methods that make API calls.
    The existing `APICallFunction` type was renamed to `APICall` for
    brevity.
    
    This required adding a few additional casts in other modules to assert
    that certain uses of possibly-undefined fields (eg. `annotation.id`) are
    safe in a particular context.
    12042882
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
websocket.js Loading commit data...