Function promise

  • Creates the Promise instance shape.

    Parameters

    Returns PromiseShape<null>

  • Creates the Promise instance shape that validates the fulfillment value.

    Type Parameters

    • ValueShape extends AnyShape

      The shape of the resolved value.

    Parameters

    • shape: ValueShape

      The shape of the resolved value.

    • Optional options: IssueOptions | Message

      The issue options or the issue message.

    Returns PromiseShape<ValueShape>