Files
rspade_system/vendor/spatie/ignition/node_modules/mdast-util-to-hast/index.d.ts
root f6fac6c4bc Fix bin/publish: copy docs.dist from project root
Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 02:08:33 +00:00

49 lines
1.1 KiB
TypeScript
Executable File

import type {Literal} from 'hast'
import type {State} from './lib/state.js'
// Expose types.
export type {State, Handler, Handlers, Options} from './lib/state.js'
// To do: next major: remove.
/**
* Deprecated: use `State`.
*/
export type H = State
// Expose JS API.
export {handlers as defaultHandlers} from './lib/handlers/index.js'
// To do: next major: remove.
export {one, all} from './lib/state.js'
export {toHast} from './lib/index.js'
// Expose node type.
/**
* Raw string of HTML embedded into HTML AST.
*/
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
export interface Raw extends Literal {
/**
* Node type.
*/
type: 'raw'
}
// Register nodes in content.
declare module 'hast' {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface RootContentMap {
/**
* Raw string of HTML embedded into HTML AST.
*/
raw: Raw
}
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface ElementContentMap {
/**
* Raw string of HTML embedded into HTML AST.
*/
raw: Raw
}
}