Function test

  • Callable with optional name, followed by decorators. Allows:

    @test
    @timeout(1000)
    @slow(500)

    To condensed on a single line:

    @test(timeout(1000), slow(500))
    

    Please note the pit fall in the first case - the @test must be the first decorator.

    Parameters

    • name: string
    • Rest ...decorator: MethodDecorator[]
      Rest

    Returns MethodDecorator

  • Called as:

    @test(timeout(1000), slow(500))
    

    Parameters

    • Rest ...decorator: MethodDecorator[]
      Rest

    Returns MethodDecorator

  • Type Parameters

    • T

    Parameters

    • target: Object
    • propertyKey: string | symbol
    • descriptor: TypedPropertyDescriptor<T>

    Returns void | TypedPropertyDescriptor<T>

Generated using TypeDoc