also looking at this
feat(types): export QueryBuilderOptions, the shape an app actually writes
#1063
2 files
+68
-6
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -459,7 +459,10 @@ export interface QueryBuilderConfig { | ||
| 459 | 459 | * still demand a complete `TimestampConfig` from anyone who wanted to rename a |
| 460 | 460 | * single column. |
| 461 | 461 | */ |
| 462 | export type DeepPartial<T> = T extends (...args: any[]) => any | |
| 462 | // `_args`, not `args`: this is a type-level signature, so the parameter name is | |
| 463 | // required syntax with nothing that could ever reference it. pickier's | |
| 464 | // no-unused-vars flags it all the same, and `^_` is the pattern it exempts. | |
| 465 | export type DeepPartial<T> = T extends (..._args: any[]) => any | |
| 463 | 466 | ? T |
| 464 | 467 | : T extends readonly (infer U)[] |
| 465 | 468 | ? readonly U[] |