@ronin/compiler 0.13.7 → 0.13.8

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 +15 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -182,25 +182,34 @@ type ModelFieldBasics = {
182
182
  /** An expression that gets evaluated every time a value is provided for the field. */
183
183
  check?: Expression;
184
184
  };
185
- type ModelField = (ModelFieldBasics & {
185
+ type ModelField = ModelFieldBasics & ({
186
186
  /** The kind of value that should be stored inside the field. */
187
187
  type?: never;
188
- }) | (ModelFieldBasics & {
188
+ } | {
189
+ /** The kind of value that should be stored inside the field. */
190
+ type: 'boolean';
191
+ } | {
192
+ /** The kind of value that should be stored inside the field. */
193
+ type: 'date';
194
+ } | {
189
195
  /** The kind of value that should be stored inside the field. */
190
- type: 'boolean' | 'date' | 'json' | 'blob';
191
- }) | (ModelFieldBasics & {
196
+ type: 'json';
197
+ } | {
198
+ /** The kind of value that should be stored inside the field. */
199
+ type: 'blob';
200
+ } | {
192
201
  /** The kind of value that should be stored inside the field. */
193
202
  type: 'string';
194
203
  /** The collation sequence to use for the field value. */
195
204
  collation?: ModelFieldCollation;
196
- }) | (ModelFieldBasics & {
205
+ } | {
197
206
  /** The kind of value that should be stored inside the field. */
198
207
  type: 'number';
199
208
  /**
200
209
  * Automatically increments the value of the field with every new inserted record.
201
210
  */
202
211
  increment?: boolean;
203
- }) | (ModelFieldBasics & {
212
+ } | {
204
213
  /** The kind of value that should be stored inside the field. */
205
214
  type: 'link';
206
215
  /** The target model of the relationship that is being established. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ronin/compiler",
3
- "version": "0.13.7",
3
+ "version": "0.13.8",
4
4
  "type": "module",
5
5
  "description": "Compiles RONIN queries to SQL statements.",
6
6
  "publishConfig": {