Skip to content

Commit

Permalink
level and strategy are optional, not required options
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Apr 6, 2024
1 parent 9642ae1 commit 8e99892
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,13 +277,13 @@ abstract class ZlibBase extends Minipass<Buffer, ChunkWithFlushFlag> {
}

export type ZlibOptions = ZlibBaseOptions & {
level: number
strategy: number
level?: number
strategy?: number
}

export class Zlib extends ZlibBase {
#level: number
#strategy: number
#level?: number
#strategy?: number

constructor(opts: ZlibOptions, mode: ZlibMode) {
opts = opts || {}
Expand Down

0 comments on commit 8e99892

Please sign in to comment.