Function instanceOf

  • Creates the class instance shape.

    Type Parameters

    • Ctor extends (new (...args: any[]) => any)

      The instance constructor.

    Parameters

    • ctor: Ctor

      The instance constructor.

    • Optionaloptions: IssueOptions | Message

      The issue options or the issue message.

    Returns InstanceShape<Ctor>