Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
11 lines
598 B
Plaintext
11 lines
598 B
Plaintext
import type { Where } from '../types/index.js';
|
|
/**
|
|
* Validates that a "where" query is in a format in which the "where builder" can understand.
|
|
* Even though basic queries are valid, we need to hoist them into the "and" / "or" format.
|
|
* Use this function alongside `transformWhereQuery` to perform a transformation if the query is not valid.
|
|
* @example
|
|
* Inaccurate: [text][equals]=example%20post
|
|
* Accurate: [or][0][and][0][text][equals]=example%20post
|
|
*/
|
|
export declare const validateWhereQuery: (whereQuery: Where) => whereQuery is Where;
|
|
//# sourceMappingURL=validateWhereQuery.d.ts.map |