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

Function writeJSDocModel

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

Source from the content-addressed store, hash-verified

3563 * @since 4.0.0
3564 */
3565export function writeJSDocModel(cwd: string, output: string, model: JSDocModel) {
3566 const filename = path.resolve(cwd, output)
3567 fs.mkdirSync(path.dirname(filename), { recursive: true })
3568 fs.writeFileSync(filename, `${JSON.stringify(model, null, 2)}\n`)
3569}
3570
3571/**
3572 * Reads and validates the outer structure of a persisted JSDoc model.

Callers 1

bin.tsFile · 0.90

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected