Options
All
  • Public
  • Public/Protected
  • All
Menu

Javascript object schema interface (any)

Hierarchy

  • ObjectSchemaI

Implemented by

Index

Methods

  • provideTestError(object: any): Error
  • Provides the reason test() returned false, if any

    Parameters

    • object: any

      The object to test

    Returns Error

    The provided error

  • sanitize(object: any): any
  • Sanitizes an object.

    Parameters

    • object: any

      The object to test

    Returns any

    The sanitized object

  • test(object: any): boolean
  • Tests the schema against an object

    Parameters

    • object: any

      The object to test

    Returns boolean

    true if it matches the schema, false if it does not match

Generated using TypeDoc