quoteLeaf()
quoteLeaf(
node: {kind:"value";value:unknown;valueType?:string; },quote:string,opts:ValueProcessorOptions,style?:QuoteEscapeStyle):string
Defined in: expr/src/utils/serializeInfix.ts:28
Quotes a non-numeric leaf value with quote, escaping embedded quote chars when asked.
Parameters
| Parameter | Type | Default value |
|---|---|---|
node | { kind: "value"; value: unknown; valueType?: string; } | undefined |
node.kind | "value" | undefined |
node.value | unknown | undefined |
node.valueType? | string | undefined |
quote | string | undefined |
opts | ValueProcessorOptions | undefined |
style? | QuoteEscapeStyle | 'backslash' |
Returns
string
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.