@kronor/dtv 8.1.3 → 9.0.0
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.
- package/dist/cli/typegen/runTypegen.js +4 -4
- package/dist/index.es.js +2983 -2948
- package/dist/types/dsl/columnTyping.d.ts +116 -0
- package/dist/types/dsl/columns.d.ts +58 -13
- package/dist/types/dsl/filterExpr.d.ts +1 -1
- package/dist/types/dsl/filterTyping.d.ts +33 -47
- package/dist/types/dsl/filters.d.ts +4 -4
- package/dist/types/dsl/index.d.ts +2 -0
- package/dist/types/dsl/typeErrors.d.ts +61 -0
- package/docs/api/row-typed-views.md +91 -25
- package/docs/typegen.md +5 -5
- package/package.json +1 -1
package/docs/typegen.md
CHANGED
|
@@ -86,13 +86,13 @@ That file contains:
|
|
|
86
86
|
the DSL helpers take as `rowType`
|
|
87
87
|
|
|
88
88
|
The generator also edits the view module itself, as a convenience: it imports
|
|
89
|
-
`<ViewIdPascal>RowType` and adds `rowType:` to the `DSL.column(...)
|
|
90
|
-
`DSL.
|
|
91
|
-
do not have one yet. Calls that already pass `rowType` are left alone, so
|
|
89
|
+
`<ViewIdPascal>RowType` and adds `rowType:` to the `DSL.column(...)`,
|
|
90
|
+
`DSL.virtualColumn(...)`, `DSL.fieldColumn(...)` and `DSL.filter(...)` calls
|
|
91
|
+
written inline in the `DSL.view({ ... })` argument that do not have one yet. Calls that already pass `rowType` are left alone, so
|
|
92
92
|
re-running the generator is safe.
|
|
93
93
|
|
|
94
|
-
Passing `rowType` is what turns on checking of a view's columns
|
|
95
|
-
row, and
|
|
94
|
+
Passing `rowType` is what turns on checking of a view's columns and filters
|
|
95
|
+
against its row, and all of these helpers require it — see
|
|
96
96
|
[api/row-typed-views.md](api/row-typed-views.md). A view where no call ends up
|
|
97
97
|
with a `rowType` gets no generated file.
|
|
98
98
|
|