functional-models
    Preparing search index...

    Function YearProperty

    • An integer property that represents a year. NOTE: This is exclusively focused on a year in a modern context. Validates from 0 to 3000

      Parameters

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