Skip to content

Commit 0d79865

Browse files
kdhillon-stripeclaude
authored andcommitted
refactor(openapi): use indexed signature type for manifest
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude
1 parent 2205f19 commit 0d79865

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/openapi/specFetchHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export async function resolveOpenApiSpec(config: ResolveSpecConfig): Promise<Res
9090
}
9191

9292
// Module-scope manifest cache: undefined = not yet tried, null = tried and missing
93-
let generatedSpecManifest: Record<string, string> | null | undefined = undefined
93+
let generatedSpecManifest: { [version: string]: string } | null | undefined = undefined
9494

9595
async function tryLoadPreGeneratedSpec(
9696
apiVersion: string
@@ -104,7 +104,7 @@ async function tryLoadPreGeneratedSpec(
104104
path.join(GENERATED_SPECS_DIR, 'manifest.json'),
105105
'utf8'
106106
)
107-
generatedSpecManifest = JSON.parse(manifestRaw) as Record<string, string>
107+
generatedSpecManifest = JSON.parse(manifestRaw) as { [version: string]: string }
108108
} catch {
109109
generatedSpecManifest = null
110110
return null

0 commit comments

Comments
 (0)