Merge pull request #20520 from overleaf/em-ts-import

Use new import JSDoc syntax for Typescript annotations

GitOrigin-RevId: 782456d637fc8f2de6163b5d70fabf06c1d74964
This commit is contained in:
Eric Mc Sween
2024-09-23 08:04:47 +00:00
committed by Copybot
parent 56fe921345
commit fcbb922326
69 changed files with 150 additions and 225 deletions
+4 -2
View File
@@ -5,6 +5,10 @@ const fetch = require('node-fetch')
const http = require('http')
const https = require('https')
/**
* @import { Response } from 'node-fetch'
*/
/**
* Make a request and return the parsed JSON response.
*
@@ -240,8 +244,6 @@ async function discardResponseBody(response) {
}
/**
* @typedef {import('node-fetch').Response} Response
*
* @param {Response} response
*/
async function maybeGetResponseBody(response) {