MCPcopy Create free account
hub / github.com/Effect-TS/effect / writeJSDocModel

Function writeJSDocModel

packages/tools/jsdocs/src/Jsdocs.ts:3475–3479  ·  view source on GitHub ↗
(cwd: string, output: string, model: JSDocModel)

Source from the content-addressed store, hash-verified

3473 * @since 4.0.0
3474 */
3475export function writeJSDocModel(cwd: string, output: string, model: JSDocModel) {
3476 const filename = path.resolve(cwd, output)
3477 fs.mkdirSync(path.dirname(filename), { recursive: true })
3478 fs.writeFileSync(filename, `${JSON.stringify(model, null, 2)}\n`)
3479}
3480
3481/**
3482 * Reads and validates the outer structure of a persisted JSDoc model.

Callers 1

bin.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected