@lunora/values 1.0.0-alpha.51 → 1.0.0-alpha.52
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/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -190,7 +190,14 @@ interface ColumnValidator<TSelect, TInsert> extends Column<TSelect, TInsert>, Va
|
|
|
190
190
|
$defaultFn: (function_: () => TSelect) => ColumnValidator<TSelect, TInsert | undefined>;
|
|
191
191
|
/** Recompute the field on every patch/replace when not explicitly provided. */
|
|
192
192
|
$onUpdateFn: (function_: () => TSelect) => ColumnValidator<TSelect, TInsert>;
|
|
193
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Override the type `Infer<>` gives this validator without changing runtime
|
|
195
|
+
* parsing (e.g. `v.string().$type<Brand>()`). An unchecked assertion: the
|
|
196
|
+
* parser still accepts any value of the base kind, so codegen's `Doc_*` /
|
|
197
|
+
* `Insert_*` / procedure-arg types keep the base type (`string`) — the one
|
|
198
|
+
* the stored value is actually guaranteed to have. For a document id use
|
|
199
|
+
* `v.id("users")`, which is checked.
|
|
200
|
+
*/
|
|
194
201
|
$type: <TOverride>() => ColumnValidator<TOverride, TOverride>;
|
|
195
202
|
/** Refinement predicate run after parsing — see {@link Validator.check}. Chainable; preserves column modifiers. */
|
|
196
203
|
check: (predicate: (value: TSelect) => boolean, options?: CheckOptions | string) => ColumnValidator<TSelect, TInsert>;
|
package/dist/index.d.ts
CHANGED
|
@@ -190,7 +190,14 @@ interface ColumnValidator<TSelect, TInsert> extends Column<TSelect, TInsert>, Va
|
|
|
190
190
|
$defaultFn: (function_: () => TSelect) => ColumnValidator<TSelect, TInsert | undefined>;
|
|
191
191
|
/** Recompute the field on every patch/replace when not explicitly provided. */
|
|
192
192
|
$onUpdateFn: (function_: () => TSelect) => ColumnValidator<TSelect, TInsert>;
|
|
193
|
-
/**
|
|
193
|
+
/**
|
|
194
|
+
* Override the type `Infer<>` gives this validator without changing runtime
|
|
195
|
+
* parsing (e.g. `v.string().$type<Brand>()`). An unchecked assertion: the
|
|
196
|
+
* parser still accepts any value of the base kind, so codegen's `Doc_*` /
|
|
197
|
+
* `Insert_*` / procedure-arg types keep the base type (`string`) — the one
|
|
198
|
+
* the stored value is actually guaranteed to have. For a document id use
|
|
199
|
+
* `v.id("users")`, which is checked.
|
|
200
|
+
*/
|
|
194
201
|
$type: <TOverride>() => ColumnValidator<TOverride, TOverride>;
|
|
195
202
|
/** Refinement predicate run after parsing — see {@link Validator.check}. Chainable; preserves column modifiers. */
|
|
196
203
|
check: (predicate: (value: TSelect) => boolean, options?: CheckOptions | string) => ColumnValidator<TSelect, TInsert>;
|