Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "extra/log"

Index

Enumerations

Classes

Variables

Functions

Variables

Const SRC_SPACING

SRC_SPACING: 5 = 5

Spacing of the message source.

Functions

log

validate

  • validate<A, O, I>(validator: Type<A, O, I>, data: any, location: string): any
  • Validates using io-ts and converts report from the io-ts-reporters reporter to colorful format and joins lines with .0 and .1 using or.

    Type parameters

    • A

    • O

    • I

    Parameters

    • validator: Type<A, O, I>
    • data: any
    • location: string

    Returns any

Generated using TypeDoc