graphile-engine
graphile-engine copied to clipboard
[graphile-utils] `OrderSpec` type in `makeAddPgTableOrderByPlugin` is too restrictive
OrderSpec is defined here.
The example from the docs doesn't match this type - it uses a function type in the first element of that tuple:
(context: GenContext) => SQLQuery
(Not sure that GenContext is actually right there)
TS error:
error TS2345: Argument of type '({}: GenContext) => SQLQuery' is not assignable to parameter of type 'string | SQLRawNode | SQLValueNode | SQLIdentifierNode | SQLQuery'.
Type '({}: GenContext) => SQLQuery' is missing the following properties from type 'SQLQuery': pop, push, concat, join, and 27 more.