Skip to main content

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​

ParameterTypeDefault value
node{ kind: "value"; value: unknown; valueType?: string; }undefined
node.kind"value"undefined
node.valueunknownundefined
node.valueType?stringundefined
quotestringundefined
optsValueProcessorOptionsundefined
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.