diff --git a/src/archive/dir.ts b/src/archive/dir.ts index c338808..e20684a 100644 --- a/src/archive/dir.ts +++ b/src/archive/dir.ts @@ -193,7 +193,7 @@ export class ArchiveDir extends Archive { * @inheritdoc */ public async read(itter: (entry: EntryDir) => Promise) { - await super.read(itter); + await super.read(itter as Parameters[0]); } /** diff --git a/src/archive/hdi.ts b/src/archive/hdi.ts index 34eeba6..92766aa 100644 --- a/src/archive/hdi.ts +++ b/src/archive/hdi.ts @@ -212,7 +212,7 @@ export class ArchiveHdi extends Archive { * @inheritdoc */ public async read(itter: (entry: EntryHdi) => Promise) { - await super.read(itter); + await super.read(itter as Parameters[0]); } /** diff --git a/src/archive/tar.ts b/src/archive/tar.ts index 78d5142..65bc148 100644 --- a/src/archive/tar.ts +++ b/src/archive/tar.ts @@ -238,7 +238,7 @@ export class ArchiveTar extends Archive { * @inheritdoc */ public async read(itter: (entry: EntryTar) => Promise) { - await super.read(itter); + await super.read(itter as Parameters[0]); } /** diff --git a/src/archive/zip.ts b/src/archive/zip.ts index bc36161..0f3dc63 100644 --- a/src/archive/zip.ts +++ b/src/archive/zip.ts @@ -330,7 +330,7 @@ export class ArchiveZip extends Archive { * @inheritdoc */ public async read(itter: (entry: EntryZip) => Promise) { - await super.read(itter); + await super.read(itter as Parameters[0]); } /** diff --git a/tsconfig.json b/tsconfig.json index 965cc8d..a773b23 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "experimentalDecorators": true, "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": false, + "strictFunctionTypes": true, "strictNullChecks": true, "strictPropertyInitialization": true,