Skip to content

Commit

Permalink
fix the thenable
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 19, 2024
1 parent a794ab4 commit cb5fb99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/server/lib/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ interface Details {

// TODO: This is likely not representative of the entire Type and should be updated
interface SavedDetails {
size?: any
size?: string
takenAt?: Date
dimensions?: any
dimensions?: string
multipart?: any
pixelRatio?: any
pixelRatio?: number
name?: any
specName?: string
testFailure?: boolean
Expand Down Expand Up @@ -553,7 +553,7 @@ export = {
}).then(() => {
// @ts-expect-error TODO: size is not assignable here
return fs.statAsync(pathToScreenshot).get('size')
}).then(({ size }) => {
}).then((size) => {
const dimensions = getDimensions(details)

const { multipart, pixelRatio, takenAt } = details
Expand Down

0 comments on commit cb5fb99

Please sign in to comment.