Function choice

  • Type Parameters

    • A

    Parameters

    • name: string
    • choices: [string, A][]
    • Optional choice: {
          key: string;
      } | {
          value: A;
      } | {
          find: ((a) => boolean);
      }

    Returns Form<A>

Generated using TypeDoc