(
Content: MDXContent,
Schema: z.ZodType<Output, Def, Input> | undefined,
props: MDXProps = {},
)
| 16 | props?: MDXProps, |
| 17 | ): Output |
| 18 | export function parseRoot<Output, Def extends ZodTypeDef, Input>( |
| 19 | Content: MDXContent, |
| 20 | Schema: z.ZodType<Output, Def, Input> | undefined, |
| 21 | props: MDXProps = {}, |
| 22 | ) { |
| 23 | const data = parse(Content, props || {}) |
| 24 | if (Schema) { |
| 25 | return parseProps(data, Schema) |
| 26 | } |
| 27 | return data |
| 28 | } |
| 29 | |
| 30 | export const Block = z.object({ |
| 31 | title: z.string().optional(), |
no test coverage detected
searching dependent graphs…