Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "util/index"

Index

Variables

Const rename

rename: ((string | ArrayConstructor)[] | (string | StringConstructor)[] | (string | ObjectConstructor)[] | (string | BooleanConstructor)[] | (string | NumberConstructor)[] | (string | FunctionConstructor)[])[] = [[Array, 'array'],[String, 'string'],[Object, 'object'],[Boolean, 'boolean'],[Number, 'number'],[Function, 'function']]

Const safeStringify

safeStringify: any = require('json-stringify-safe')

Functions

constructify

  • constructify(func: any): any

funcify

  • funcify<Result, Rule, Options>(FuncConstructor: any): function
  • Funcify the constructor, see createVerifiableClass.

    Type parameters

    • Result

    • Rule

    • Options

    Parameters

    • FuncConstructor: any

    Returns function

      • (rule?: Rule, options?: Options): Result
      • Parameters

        • Optional rule: Rule
        • Optional options: Options

        Returns Result

getDisplayName

  • Gets display name from Function.

    Parameters

    • func: FunctionWithName
    • Default value __namedParameters: object = {}
      • camel: boolean

    Returns string

getTypeName

  • getTypeName(ins: any): string
  • Gets type's name from instance.

    Parameters

    • ins: any

    Returns string

inherits

  • inherits(Child: any, Super: any): void

isFuncified

  • isFuncified(Func: any): boolean

isRequired

  • isRequired(rule: any): boolean
  • Checks rule is required

    Parameters

    • rule: any

    Returns boolean

toArray

  • toArray<T>(item: any): T[]
  • Type parameters

    • T

    Parameters

    • item: any

    Returns T[]

toString

  • toString(rule: any, options?: any): any
  • To pretty string from anything.

    Parameters

    • rule: any
    • Optional options: any

    Returns any

Generated using TypeDoc