Skip to content

saveContentToFile

reference
1 min readUpdated

Kind: Function

Source: src/helper/ssg/ssg.ts

Part of: Helper

Signature

ts
async function saveContentToFile(data: Promise<{ routePath: string; content: string | ArrayBuffer; mimeType: string } | undefined>, fsModule: FileSystemModule, outDir: string, extensionMap: Record<string, string>): Promise<string | undefined>

Parameters

NameType
data`Promise<{ routePath: string; content: string
fsModuleFileSystemModule
outDirstring
extensionMapRecord<string, string>

Returns: Promise<string | undefined>

Was this page helpful?

Download as PDF
saveContentToFile — Hono (narrator proof)