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.

25 lines (23 loc) 421 B
import {defineType} from 'sanity' export const tsdocExampleBlockType = defineType({ type: 'object', name: 'tsdoc.exampleBlock', title: 'Example block', fields: [ { type: 'array', name: 'content', title: 'Content', of: [ { type: 'block', }, { type: 'code', name: 'code', title: 'Code', }, ], }, ], })