Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 646 Bytes

File metadata and controls

29 lines (22 loc) · 646 Bytes

@hyperbook/types

TypeScript type definitions for Hyperbook. This package provides all the core types used across the Hyperbook ecosystem, including:

  • Configuration types for hyperbook.json and hyperlibrary.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/types

Usage

import type { HyperbookJson, Language, Navigation } from "@hyperbook/types";

const config: HyperbookJson = {
  name: "My Documentation",
  language: "en",
  // ...
};