functional-models
    Preparing search index...

    Function UuidProperty

    • A property that has a uuid. This property has required on it. If you want it to automatically create a uuid add { autoNow: true } to the config.

      Parameters

      • config: PropertyConfig<string> = {}

        Additional configurations.

      • additionalMetadata: {} = {}

        Any additional metadata.

      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 }>>;
          },
      >