Schema
@hashml/hashml › Globals › "schema/Schema" › Schema
Hierarchy
- Schema
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
+ new Schema(schema
: SchemaDefinition): Schema
Defined in schema/Schema.ts:17
Parameters:
Name | Type |
---|---|
schema | SchemaDefinition |
Returns: Schema
Properties
Private
blockSchemas
• blockSchemas: Map‹string, BlockSchema› = new Map()
Defined in schema/Schema.ts:15
Private
inlineSchemas
• inlineSchemas: Map‹string, InlineSchema› = new Map()
Defined in schema/Schema.ts:16
rootSchema
• rootSchema: BlockSchema
Defined in schema/Schema.ts:14
sugars
• sugars: Sugar[] = []
Defined in schema/Schema.ts:17
Accessors
blocks
• get blocks(): BlockSchema[]
Defined in schema/Schema.ts:38
Returns: BlockSchema[]
inlines
• get inlines(): InlineSchema[]
Defined in schema/Schema.ts:42
Returns: InlineSchema[]
Methods
getBlockSchema
▸ getBlockSchema(tag
: string): BlockSchema | undefined
Defined in schema/Schema.ts:46
Parameters:
Name | Type |
---|---|
tag | string |
Returns: BlockSchema | undefined
getInlineSchema
▸ getInlineSchema(tag
: string): InlineSchema | undefined
Defined in schema/Schema.ts:50
Parameters:
Name | Type |
---|---|
tag | string |
Returns: InlineSchema | undefined