mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-18 13:26:26 +00:00
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:
parent
7c340f9675
commit
28706510da
@ -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,
|
||||
});
|
||||
|
12
typings/docker-delta.d.ts
vendored
12
typings/docker-delta.d.ts
vendored
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user