GeneratorParams interface exported

Last updated: 2026-03-03T19:04:25.123Z

Metrics

LOC: 15 Complexity: 1 Params: 0

Signature

interface GeneratorParams

Summary

Extra parameters passed to a generator function (min/max, format, etc.).

Source Code

export interface GeneratorParams {
  readonly min?: number;
  readonly max?: number;
  readonly formatted?: boolean;
  readonly length?: number;
  readonly onlyNumbers?: boolean;
  readonly onlyLetters?: boolean;
  readonly prefix?: string;
  readonly suffix?: string;
  readonly pattern?: string;
  readonly options?: string[]; // for select/radio
  readonly probability?: number; // for optional fields or boolean fields
  readonly dateFormat?: "iso" | "br" | "us";
  readonly [key: string]: unknown; // allow extra params without TS errors
}

Dependencies (Outgoing)

graph LR GeneratorParams["GeneratorParams"] FieldType["FieldType"] FieldCategory["FieldCategory"] GeneratorParams -->|uses| FieldType GeneratorParams -->|uses| FieldCategory style GeneratorParams fill:#dbeafe,stroke:#2563eb,stroke-width:2px click GeneratorParams "e1fda5b7991e343d.html" click FieldType "e49ed8a601306673.html" click FieldCategory "a035f81f5535d665.html"
TargetType
FieldType uses
FieldCategory uses

Impact (Incoming)

graph LR GeneratorParams["GeneratorParams"] loadRules["loadRules"] ReplaySpeed["ReplaySpeed"] mapValueToSource["mapValueToSource"] handleRuleButtonClick["handleRuleButtonClick"] GeneratorFn["GeneratorFn"] GeneratorOption["GeneratorOption"] FormsTabViewCallbacks["FormsTabViewCallbacks"] loadRules -->|uses| GeneratorParams ReplaySpeed -->|uses| GeneratorParams mapValueToSource -->|uses| GeneratorParams handleRuleButtonClick -->|uses| GeneratorParams GeneratorFn -->|uses| GeneratorParams GeneratorOption -->|uses| GeneratorParams FormsTabViewCallbacks -->|uses| GeneratorParams style GeneratorParams fill:#dbeafe,stroke:#2563eb,stroke-width:2px click GeneratorParams "e1fda5b7991e343d.html" click loadRules "9993895f2b3163a1.html" click ReplaySpeed "b6ebcffd17174260.html" click mapValueToSource "095f23c1feace9fe.html" click handleRuleButtonClick "302ac6e6209ebb8e.html" click GeneratorFn "07e2c388ba1ac3f3.html" click GeneratorOption "46d00f7f04960150.html" click FormsTabViewCallbacks "413148ba3c727cc8.html"