@ronin/compiler 0.14.6-corny-ron-1099-experimental-331 → 0.14.6-corny-ron-1099-experimental-333

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -199,7 +199,7 @@ type ModelFieldBasics = {
199
199
  * The value that should be inserted into the field in the case that no value was
200
200
  * explicitly provided for it when a record is created.
201
201
  */
202
- defaultValue?: Expression | unknown | (() => Expression);
202
+ defaultValue?: Expression | unknown | (() => string);
203
203
  /**
204
204
  * An expression that should be evaluated to form the value of the field. The
205
205
  * expression can either be VIRTUAL (evaluated whenever a record is read) or STORED
@@ -207,10 +207,10 @@ type ModelFieldBasics = {
207
207
  */
208
208
  computedAs?: {
209
209
  kind: 'VIRTUAL' | 'STORED';
210
- value: Expression | unknown | ((fields: Record<string, unknown>) => Expression);
210
+ value: ((fields: Record<string, string>) => string) | string | Expression;
211
211
  };
212
212
  /** An expression that gets evaluated every time a value is provided for the field. */
213
- check?: Expression | ((fields: Record<string, unknown>) => Expression);
213
+ check?: Expression | ((fields: Record<string, string>) => string);
214
214
  };
215
215
  type ModelField = ModelFieldBasics & ({
216
216
  /** The kind of value that should be stored inside the field. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.14.6-corny-ron-1099-experimental-331",
3
+ "version": "0.14.6-corny-ron-1099-experimental-333",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {