@kronor/dtv 8.1.3 → 9.1.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 +11621 -11548
- 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/dist/types/framework/cached-value.d.ts +11 -0
- package/dist/types/framework/result.d.ts +6 -0
- package/dist/types/framework/serial-queue.d.ts +11 -0
- package/dist/types/framework/useUserDataManager.d.ts +8 -7
- package/dist/types/framework/user-data-errors.d.ts +8 -0
- package/dist/types/framework/user-data-manager.d.ts +7 -1
- package/dist/types/framework/user-data-storage.d.ts +17 -0
- package/dist/types/framework/user-data.d.ts +5 -0
- package/docs/api/row-typed-views.md +91 -25
- package/docs/typegen.md +5 -5
- package/package.json +1 -1
|
@@ -71,11 +71,11 @@ function ensureRowTypeImport(sourceText, sourceFile, importName, importPathNoExt
|
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* DSL helpers that take a `rowType` for type checking against the view's row.
|
|
74
|
-
*
|
|
75
|
-
* groups of `filterGroups`, so the whole view argument is searched rather
|
|
76
|
-
* one property of it.
|
|
74
|
+
* The column helpers sit directly in `columnDefinitions`; `filter` sits inside
|
|
75
|
+
* the groups of `filterGroups`, so the whole view argument is searched rather
|
|
76
|
+
* than one property of it.
|
|
77
77
|
*/
|
|
78
|
-
const ROW_TYPED_HELPERS = new Set(['column', 'filter']);
|
|
78
|
+
const ROW_TYPED_HELPERS = new Set(['column', 'virtualColumn', 'fieldColumn', 'filter']);
|
|
79
79
|
/** A `DSL.<helper>(...)` / `<ns>.DSL.<helper>(...)` call, however DTV was imported. */
|
|
80
80
|
function getRowTypedHelperCall(node, dslIdentifiers, dtvNamespaces) {
|
|
81
81
|
if (!ts.isCallExpression(node))
|