File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,17 @@ type Rest<T> =
177
177
T extends TemplateStringsArray ? never : // force fallback to the tagged template function overload
178
178
T extends string ? readonly string [ ] :
179
179
T extends readonly any [ ] [ ] ? readonly [ ] :
180
- T extends readonly ( object & infer R ) [ ] ? readonly ( Keys & keyof R ) [ ] :
180
+ T extends readonly ( object & infer R ) [ ] ? (
181
+ readonly ( Keys & keyof R ) [ ] // sql(data, "prop", "prop2") syntax
182
+ |
183
+ [ readonly ( Keys & keyof R ) [ ] ] // sql(data, ["prop", "prop2"]) syntax
184
+ ) :
181
185
T extends readonly any [ ] ? readonly [ ] :
182
- T extends object ? readonly ( Keys & keyof T ) [ ] :
186
+ T extends object ? (
187
+ readonly ( Keys & keyof T ) [ ] // sql(data, "prop", "prop2") syntax
188
+ |
189
+ [ readonly ( Keys & keyof T ) [ ] ] // sql(data, ["prop", "prop2"]) syntax
190
+ ) :
183
191
any
184
192
185
193
type Return < T , K extends readonly any [ ] > =
You can’t perform that action at this time.
0 commit comments