@nevware21/tripwire - v0.1.2
    Preparing search index...

    Interface IAssertInstHandlers

    The interface that defines the handlers for creating new assertion instances. This interface is used to create new instances of the assertion object with the default functions and operations, as well as creating new empty instances that do not have the default functions and operations.

    0.1.0

    interface IAssertInstHandlers {
        newAssertInst: (scope: IAssertScope) => any;
        newEmptyAssertInst: (scope: IAssertScope) => any;
    }
    Index

    Properties

    newAssertInst: (scope: IAssertScope) => any

    Creates a new "full" assertion object instance using the scope provided, this call creates a new instance with all default functions and operations.

    Type declaration

      • (scope: IAssertScope): any
      • Parameters

        • scope: IAssertScope

          The parent / owning scope of the new instance.

        Returns any

        • The new assert instance.
    newEmptyAssertInst: (scope: IAssertScope) => any

    Creates a new "empty" (no default functions) assertion object instance using the scope provided, this call normally occurs in operators that extend the instance by adding operation specific functions and operations while still honoring the general runtime instances.

    Type declaration

      • (scope: IAssertScope): any
      • Parameters

        • scope: IAssertScope

          The parent / owning scope of the new instance.

        Returns any

        • The new empty assert instance