• 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.js Loading commit data...
api.js Loading commit data...
config.js Loading commit data...
pdfjs.js Loading commit data...
sidebar.js Loading commit data...