interface-forge - v2.5.0
    Preparing search index...

    Class Ref<T, C>

    Encapsulates a function and its arguments for deferred execution within factories. This enables lazy evaluation of nested factory calls, preventing infinite recursion and allowing complex object relationships to be defined declaratively.

    Type Parameters

    • T

      The return type of the encapsulated function

    • C extends (...args: never[]) => T

      The function type that returns T

    Index

    Constructors

    Methods

    Constructors

    • Type Parameters

      • T
      • C extends (...args: never[]) => T

      Parameters

      Returns Ref<T, C>

    Methods