@hyperbook/types
v0.23.0
Published
TypeScript type definitions for Hyperbook. This package provides all the core types used across the Hyperbook ecosystem, including:
Downloads
51
Readme
@hyperbook/types
TypeScript type definitions for Hyperbook. This package provides all the core types used across the Hyperbook ecosystem, including:
- Configuration types for
hyperbook.jsonandhyperlibrary.json - Page and section navigation types
- Language and layout definitions
- Element and directive configuration types
- Glossary and frontmatter types
Installation
pnpm add @hyperbook/types
# or
npm i @hyperbook/typesUsage
import type { HyperbookJson, Language, Navigation } from "@hyperbook/types";
const config: HyperbookJson = {
name: "My Documentation",
language: "en",
// ...
};