Skip to content

달빛약속 / core/mod / Rule

Type Alias: Rule

Rule: object

Type declaration

config?

optional config: Record<string, unknown>

factory()

factory: (nodes, tokens) => Node

Parameters

nodes: Node[]

tokens: Token[]

Returns

Node

flags?

optional flags: RULE_FLAGS[]

pattern

pattern: PatternUnit[]

Defined in

core/prepare/parse/type.ts:12