1.0.2 • Published 10 months ago

@mdxui/types v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@mdxui/types

Core TypeScript types extending schema-dts to support $type alongside @type for YAML-LD frontmatter in MDX files.

Installation

pnpm add @mdxui/types

Usage

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 $type support
  • 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

1.0.2

10 months ago

1.0.1

10 months ago

0.0.1

10 months ago

0.0.0-development

10 months ago