ConditionalStringValue Class
Class used to return a string value. The string value is refreshed by using the specified function. The syncEventIds define one or more eventIds that would require the stringGetter function to be rerun.
Methods
Name | Description | |
---|---|---|
constructor(stringGetter: () => string, syncEventIds: string[], value?: string): ConditionalStringValue | Constructor for ConditionalStringValue. | |
refresh(): boolean | Called to update the value by running the stringGetter | |
getValue(conditionalValue: undefined | string | ConditionalStringValue): undefined | string Static | helper function to get string from a ConditionalStringValue | string | undefined | |
refreshValue(conditionalValue: undefined | string | ConditionalStringValue, eventIds: Set<string>): boolean Static | helper function to process properties defined as type ConditionalStringValue | string | undefined |
Properties
Defined in
Last Updated: 25 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.