Skip to content

Commit

Permalink
fix type of overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 18, 2024
1 parent 883025f commit f7e5958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/lib/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ const getDimensions = function (details) {
return pick(details.image.bitmap)
}

const ensureSafePath = function (withoutExt: string, extension: string, overwrite: boolean, num = 0) {
const ensureSafePath = function (withoutExt: string, extension: string, overwrite: Data['overwrite'], num = 0) {
const suffix = `${(num && !overwrite) ? ` (${num})` : ''}.${extension}`

const maxSafePrefixBytes = maxSafeBytes - suffix.length
Expand Down

0 comments on commit f7e5958

Please sign in to comment.