πŸ“„ File detail

utils/settings/schemaOutput.ts

🧩 .tsπŸ“ 9 linesπŸ’Ύ 317 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œutils/”, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, …). On the API surface it exposes generateSettingsJSONSchema β€” mainly functions, hooks, or classes. Dependencies touch schema validation. It composes internal code from slowOperations and types (relative imports).

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

import { toJSONSchema } from 'zod/v4' import { jsonStringify } from '../slowOperations.js' import { SettingsSchema } from './types.js' export function generateSettingsJSONSchema(): string {

πŸ“€ Exports (heuristic)

  • generateSettingsJSONSchema

πŸ“š External import roots

Package roots from from "…" (relative paths omitted).

  • zod

πŸ–₯️ Source preview

import { toJSONSchema } from 'zod/v4'
import { jsonStringify } from '../slowOperations.js'
import { SettingsSchema } from './types.js'

export function generateSettingsJSONSchema(): string {
  const jsonSchema = toJSONSchema(SettingsSchema(), { unrepresentable: 'any' })
  return jsonStringify(jsonSchema, null, 2)
}