Remove custom typings for docker-delta

This are no longer needed since docker-delta migrated to typescript in
v4 and the custom typings were actually masking some bugs

Change-type: patch
This commit is contained in:
Felipe Lalanne 2024-07-04 18:41:33 -04:00
parent 7c340f9675
commit 28706510da
No known key found for this signature in database
GPG Key ID: 03E696BFD472B26A
2 changed files with 1 additions and 13 deletions

View File

@ -327,7 +327,7 @@ async function applyRsyncDelta(
} else if (parseInt(res.headers['content-length'] || '0', 10) === 0) {
reject(new Error('Invalid delta URL'));
} else {
const deltaStream = applyDelta(imgSrc, {
const deltaStream = applyDelta(docker, imgSrc, {
log: logFn,
timeout: applyTimeout,
});

View File

@ -1,12 +0,0 @@
declare module 'docker-delta' {
// Incomplete type definitions
import type { Duplex } from 'stream';
import { TypedError } from 'typed-error';
export class OutOfSyncError extends TypedError {}
export function applyDelta(
imageSource: string,
opts: { log: (str: string) => void; timeout: number },
): Duplex;
}