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.

16 lines (12 loc) 335 B
// import {APITokensInput} from './APITokensInput' import {defineType} from 'sanity' import {APITokensInput} from '../components/APITokensInput' export const apiTokensType = defineType({ type: 'array', name: 'api.tokens', title: 'Tokens', of: [{type: 'api.token'}], components: { input: APITokensInput as any, }, })