Function lazy

  • Creates the shape that resolves the underlying shape on-demand.

    Type Parameters

    • ProvidedShape extends AnyShape

      The provided shape.

    Parameters

    • shapeProvider: (() => ProvidedShape)

      The provider that returns the resolved shape.

        • (): ProvidedShape
        • Returns ProvidedShape

    Returns LazyShape<ProvidedShape, Input<ProvidedShape>>