hediet / ts-typed-sql

A fully typed sql builder. Not maintained anymore, use it for your inspiration.
https://hediet.github.io/ts-typed-sql/
54 stars 4 forks source link

FromItemToOutRow #8

Closed phiresky closed 7 years ago

phiresky commented 7 years ago
export type FromItemToInRow<TFromItem extends s.Table<any, any>> =
    {[TName in keyof TFromItem["$requiredColumns"]]: s.GetInType<s.ExpressionTypeOf<TFromItem["$requiredColumns"][TName]>> };
hediet commented 7 years ago

There is TableToInRow and FromItemToInRow now. The first makes optional columns optional, the second does not know how to distinguish required from optional columns.