Options
All
  • Public
  • Public/Protected
  • All
Menu

Schema for Number

Hierarchy

Index

Constructors

Properties

schema: NumberRawSchema

Methods

  • provideTestError(object: any): Error
  • sanitize(object: any): any
  • 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

  • Sets default value, in case the object is null, undefined or cannot be parsed

    Parameters

    • defaultValue: number

      The default value

    Returns NumberObjectSchema

    self

Generated using TypeDoc