@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.
- package/dist/index.d.ts +15 -6
- 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 =
|
185
|
+
type ModelField = ModelFieldBasics & ({
|
186
186
|
/** The kind of value that should be stored inside the field. */
|
187
187
|
type?: never;
|
188
|
-
}
|
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: '
|
191
|
-
}
|
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
|
-
}
|
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
|
-
}
|
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. */
|