Options
All
  • Public
  • Public/Protected
  • All
Menu

helper functions

Hierarchy

  • Helpers

Index

Methods

Static checkArgs

  • checkArgs<T>(object: Object, yupSchema: any): Promise<T>
  • Check first argument try to cast object using yup validate arguments against predefined types using yup return validated object

    static
    template

    T

    memberof

    Helpers

    Type parameters

    • T

    Parameters

    • object: Object
    • yupSchema: any

    Returns Promise<T>

Static getLoggerInstance

  • getLoggerInstance(name: string, level?: string): LoggerInstance
  • Winston Logger with default level: debug

    static
    memberof

    Helpers

    Parameters

    • name: string
    • Optional level: string

    Returns LoggerInstance

Generated using TypeDoc