code: types,nextjs,frontends (1 files)

This commit is contained in:
2025-12-26 00:16:30 +00:00
parent 0b1a82a2b7
commit 4bfdd65e2f

View File

@@ -0,0 +1,30 @@
export interface ScreenshotAnalysisPayload {
title: string
url: string
viewport: {
width: number
height: number
}
textSample: string
htmlSample: string
}
export interface ScreenshotAnalysisMetrics {
wordCount: number
headingCount: number
h1Count: number
h2Count: number
h3Count: number
imgCount: number
imgMissingAltCount: number
linkCount: number
buttonCount: number
formCount: number
inputCount: number
}
export interface ScreenshotAnalysisResult {
report: string
metrics: ScreenshotAnalysisMetrics
warnings: string[]
}