From cb5fb993e5408b8d079dd4c85a62c5c0000dd6b5 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Thu, 19 Dec 2024 13:31:02 -0500 Subject: [PATCH] fix the thenable --- packages/server/lib/screenshots.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/server/lib/screenshots.ts b/packages/server/lib/screenshots.ts index 024ef60d7800..08f2871116a3 100644 --- a/packages/server/lib/screenshots.ts +++ b/packages/server/lib/screenshots.ts @@ -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 @@ -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