• 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
AnnotationView.js 3.23 KB