Skip to content

Commit

Permalink
Asar.fromFile/Directory make opts arg optional
Browse files Browse the repository at this point in the history
  • Loading branch information
lafkpages committed Oct 26, 2023
1 parent 63801af commit d1e76d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/asar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class Asar extends DirectoryEntry {
*/
static async fromDirectory(
inputDir: string,
opts: ConstructorParameters<typeof Asar>[1]
opts?: ConstructorParameters<typeof Asar>[1]
) {
const asar = new Asar(undefined, opts);

Expand All @@ -176,7 +176,7 @@ export class Asar extends DirectoryEntry {
*/
static async fromFile(
asarPath: string,
opts: ConstructorParameters<typeof Asar>[1]
opts?: ConstructorParameters<typeof Asar>[1]
) {
return new Asar(await readFile(asarPath), opts);
}
Expand Down

0 comments on commit d1e76d3

Please sign in to comment.