Skip to content

Commit

Permalink
Stricter types
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Feb 22, 2024
1 parent 127fa88 commit b3e5f75
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/archive/dir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class ArchiveDir extends Archive {
* @inheritdoc
*/
public async read(itter: (entry: EntryDir) => Promise<unknown>) {
await super.read(itter);
await super.read(itter as Parameters<Archive['read']>[0]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/archive/hdi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export class ArchiveHdi extends Archive {
* @inheritdoc
*/
public async read(itter: (entry: EntryHdi) => Promise<unknown>) {
await super.read(itter);
await super.read(itter as Parameters<Archive['read']>[0]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/archive/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class ArchiveTar extends Archive {
* @inheritdoc
*/
public async read(itter: (entry: EntryTar) => Promise<unknown>) {
await super.read(itter);
await super.read(itter as Parameters<Archive['read']>[0]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/archive/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class ArchiveZip extends Archive {
* @inheritdoc
*/
public async read(itter: (entry: EntryZip) => Promise<unknown>) {
await super.read(itter);
await super.read(itter as Parameters<Archive['read']>[0]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,

"strictFunctionTypes": false,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,

Expand Down

0 comments on commit b3e5f75

Please sign in to comment.