• 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
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...