Update typescript to 4.8.4

This commit is contained in:
Fedor Indutny 2022-11-14 11:35:37 -08:00 committed by GitHub
parent 4c622b6f81
commit e6ebfe4fca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 133 additions and 167 deletions

View file

@ -2,7 +2,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
import type { RequestInit, Response } from 'node-fetch';
import type { AbortSignal as AbortSignalForNodeFetch } from 'abort-controller';
import { blobToArrayBuffer } from 'blob-util';
import type { MIMEType } from '../types/MIME';
@ -450,7 +449,7 @@ export async function fetchLinkPreviewMetadata(
Accept: 'text/html,application/xhtml+xml',
'User-Agent': USER_AGENT,
},
signal: abortSignal as AbortSignalForNodeFetch,
signal: abortSignal,
},
logger
);
@ -551,7 +550,7 @@ export async function fetchLinkPreviewImage(
'User-Agent': USER_AGENT,
},
size: MAX_IMAGE_CONTENT_LENGTH,
signal: abortSignal as AbortSignalForNodeFetch,
signal: abortSignal,
},
logger
);