( candidate: any, )
| 252 | * @param candidate |
| 253 | */ |
| 254 | export function isFilter<MT extends object>( |
| 255 | candidate: any, |
| 256 | ): candidate is Filter<MT> { |
| 257 | if (typeof candidate !== 'object') return false; |
| 258 | for (const key in candidate) { |
| 259 | if (!filterFields.includes(key)) { |
| 260 | return false; |
| 261 | } |
| 262 | } |
| 263 | return true; |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * A builder for Where object. It provides fluent APIs to add clauses such as |
no outgoing calls
no test coverage detected