JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 187
  • Score
    100M100P100Q42197F
  • License MIT

Core TypeScript types extending schema-dts for MDXUI

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/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
  • @mdxui/shared - Shared utilities and components
  • @mdxui/blog - Blog-specific implementations
  • @mdxui/docs - Documentation specific implementations

License

MIT © 2024 Drivly