rado 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,9 +33,9 @@ declare class TableProto<Definition> {
33
33
  }
34
34
  export type Table<Definition> = Definition & TableProto<Definition>;
35
35
  export declare namespace Table {
36
- export type Of<Row> = Table<{
37
- [K in keyof Row]: Column<Row[K]>;
38
- }>;
36
+ export type Of<Row> = {
37
+ [Selection.__tableType](): Row;
38
+ };
39
39
  export type Select<Definition> = {
40
40
  [K in keyof Definition as Definition[K] extends Column<any> ? K : never]: Definition[K] extends Column<infer T> ? T : never;
41
41
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rado",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",