ArgSchema
@hashml/hashml › Globals › "schema/Schema" › ArgSchema
Hierarchy
- ArgSchema
Index
Constructors
Properties
Constructors
constructor
+ new ArgSchema(parentTag
: string, schema
: ArgDefinition): ArgSchema
Defined in schema/Schema.ts:143
Parameters:
Name | Type |
---|---|
parentTag | string |
schema | ArgDefinition |
Returns: ArgSchema
Properties
name
• name: string
Defined in schema/Schema.ts:137
Name of the argument
parentTag
• parentTag: string
Defined in schema/Schema.ts:145
raw
• raw: boolean
Defined in schema/Schema.ts:141
If true
, the schema tells us that the argument should be not parsed as Hashml.
type
• type: "parsed" | "string" | "url" | "date"
Defined in schema/Schema.ts:139
How the arg should be represented in the IR
validChildren
• validChildren: ReadonlySet‹string›
Defined in schema/Schema.ts:143
Set of tags allowed in this argument