Package Exports
- @mdxui/types
- @mdxui/types/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mdxui/types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@mdxui/types
Core TypeScript types extending schema-dts to support $type alongside @type for YAML-LD frontmatter in MDX files.
Installation
pnpm add @mdxui/typesUsage
import { BlogPost, DocumentationPage } from '@mdxui/types'
// In your MDX frontmatter
---
$type: BlogPost
title: My Blog Post
date: 2024-03-20
---
// Type checking in your components
interface Props {
frontmatter: BlogPost
}Features
- Extended schema.org types with
$typesupport - Full TypeScript definitions for all MDXUI components
- Type safety for YAML-LD frontmatter
- Integration with schema-dts
Related Packages
@mdxui/shared- Shared utilities and components@mdxui/blog- Blog-specific implementations@mdxui/docs- Documentation specific implementations
License
MIT © 2024 Drivly