Interface: IParser
Defined in: interfaces/index.ts:19
Parsers are used to parse a tag and return a value based on the tag.
Properties
parse()
parse: (ctx
) => Awaitable
<null
| string
>
Defined in: interfaces/index.ts:25
Parses the given tag.
Parameters
ctx
The context of the tag.
Returns
Awaitable
<null
| string
>
willAccept()
willAccept: (ctx
) => Awaitable
<boolean
>
Defined in: interfaces/index.ts:31
Whether the parser can handle the given tag.
Parameters
ctx
The context of the tag.
Returns
Awaitable
<boolean
>