Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParseBoolPipe

Defines the built-in ParseBool Pipe Defines the built-in ParseBool Pipe

see

Built-in Pipes

publicapi
see

Built-in Pipes

publicapi

Hierarchy

  • ParseBoolPipe

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected exceptionFactory

exceptionFactory: (error: string) => any

Type declaration

    • (error: string): any
    • Parameters

      • error: string

      Returns any

Methods

transform

  • transform(value: string | boolean, metadata: ArgumentMetadata): Promise<boolean>
  • Method that accesses and performs optional transformation on argument for in-flight requests.

    Parameters

    • value: string | boolean

      currently processed route argument

    • metadata: ArgumentMetadata

      contains metadata about the currently processed route argument

    Returns Promise<boolean>

Generated using TypeDoc