Shared TypeScript type definitions for Glyph JS
npm install @glyphjs/typesShared TypeScript type definitions for the Glyph JS ecosystem.
``bash`
pnpm add @glyphjs/types
`ts
import type { GlyphIR, Block, CompilationResult } from '@glyphjs/types';
const doc: GlyphIR = {
version: '0.1',
documentId: 'doc-1',
metadata: { title: 'Hello' },
blocks: [],
references: [],
};
`
- IR types -- GlyphIR, Block, Reference, CompilationResult, and related interfacesGlyphRoot
- AST types -- , GlyphUIBlock, RawRef for the parsed markdown ASTHeadingData
- Block data types -- , ParagraphData, CodeData, ListData, and moreGlyphPatch
- Patch types -- , GlyphPatchOperation for IR diffing/patchingGlyphRuntime
- Runtime types -- , GlyphTheme, BlockProps, GlyphRuntimeConfigGlyphComponentDefinition
- Plugin types -- , GlyphComponentProps`
https://github.com/VledicFranco/glyphjs