functional-models
    Preparing search index...

    Function EmailProperty

    • A property that encapsulates email addresses. Provides validation for making sure an email is valid.

      Parameters

      Returns Readonly<
          {
              createGetter: (
                  value: string,
                  modelData: Readonly,
                  modelInstance: ModelInstance<
                      Readonly<{ [s: string]: any }>,
                      object,
                      object,
                  >,
              ) => ValueGetter<string, Readonly<{ [s: string]: any }>, object, object>;
              getChoices: () => readonly ChoiceTypes[];
              getConfig: () => object;
              getConstantValue: () => undefined | string;
              getDefaultValue: () => undefined | string;
              getPropertyType: () => string;
              getValidator: (
                  valueGetter: ValueGetter<
                      string,
                      Readonly<{ [s: string]: any }>,
                      object,
                      object,
                  >,
              ) => PropertyValidator<Readonly<{ [s: string]: any }>>;
          },
      >