Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IJtdcDialect<M, C>

The validator dialect that describes how validators and type narrowing functions are generated.

Type parameters

  • M

  • C

Hierarchy

  • IJtdcDialect

Index

Methods

elements

  • elements(node: IJtdElementsNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

enum

import

  • import(): IFragmentCgNode

mapping

  • mapping(mappingKey: string, mappingNode: IJtdObjectNode<M>, unionNode: IJtdUnionNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

nullable

  • nullable(node: IJtdNullableNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

object

  • object(node: IJtdObjectNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

optionalProperty

  • optionalProperty(propKey: string, propNode: JtdNode<M>, objectNode: IJtdObjectNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

property

  • property(propKey: string, propNode: JtdNode<M>, objectNode: IJtdObjectNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

ref

type

typeGuard

  • typeGuard(ref: string, node: JtdNode<M>): IFragmentCgNode

union

  • union(node: IJtdUnionNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

validator

  • validator(ref: string, node: JtdNode<M>, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode
  • Returns the validator function source code.

    Parameters

    • ref: string
    • node: JtdNode<M>
    • next: (ctx: C) => IFragmentCgNode
        • (ctx: C): IFragmentCgNode
        • Parameters

          • ctx: C

          Returns IFragmentCgNode

    Returns IFragmentCgNode

values

  • values(node: IJtdValuesNode<M>, ctx: C, next: (ctx: C) => IFragmentCgNode): IFragmentCgNode

Generated using TypeDoc