regenerateID()
regenerateID<
R>(rule:R,__namedParameters:RegenerateIdOptions):SetRequired<R,"id">
Defined in: packages/core/src/utils/regenerateIDs.ts:17
Generates a new id property for a rule.
Type Parameters
| Type Parameter |
|---|
R extends RuleType<string, string, any, string> |
Parameters
| Parameter | Type |
|---|---|
rule | R |
__namedParameters | RegenerateIdOptions |
Returns
SetRequired<R, "id">
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.