BlockSchema
@hashml/hashml › Globals › "schema/Schema" › BlockSchema
Hierarchy
- BlockSchema
Index
Constructors
Properties
Methods
Constructors
constructor
+ new BlockSchema(tag
: string, schema
: BlockDefinition): BlockSchema
Defined in schema/Schema.ts:63
Parameters:
Name | Type |
---|---|
tag | string |
schema | BlockDefinition |
Returns: BlockSchema
Properties
bodyProps
• bodyProps: ReadonlyArray‹BodyPropSchema›
Defined in schema/Schema.ts:59
childCardinalities
• childCardinalities: ReadonlyArray‹[string, Cardinality]›
Defined in schema/Schema.ts:61
Private
childTagToProp
• childTagToProp: Map‹string, BodyPropSchema› = new Map()
Defined in schema/Schema.ts:63
Optional
defaultTag
• defaultTag? : undefined | string
Defined in schema/Schema.ts:57
Optional
head
• head? : ArgSchema
Defined in schema/Schema.ts:56
Optional
rawProp
• rawProp? : BodyPropSchema
Defined in schema/Schema.ts:60
tag
• tag: string
Defined in schema/Schema.ts:65
Methods
getPropByChild
▸ getPropByChild(child
: string): BodyPropSchema | undefined
Defined in schema/Schema.ts:93
Parameters:
Name | Type |
---|---|
child | string |
Returns: BodyPropSchema | undefined