UNPKG

@sanity/tsdoc

Version:

Generate API reference docs from TypeScript projects and store in a Sanity-friendly JSON format. Render a static frontend, or as React components.

30 lines (28 loc) 491 B
import {defineType} from 'sanity' export const tsdocParamBlockType = defineType({ type: 'object', name: 'tsdoc.paramBlock', title: 'Param block', fields: [ { type: 'string', name: 'name', title: 'Name', }, { type: 'array', name: 'content', title: 'Content', of: [ { type: 'block', }, { type: 'code', name: 'code', title: 'Code', }, ], }, ], })