@ronin/compiler 0.13.5 → 0.13.6
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 +7 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -184,22 +184,25 @@ type ModelFieldBasics = {
|
|
184
184
|
};
|
185
185
|
type ModelField = (ModelFieldBasics & {
|
186
186
|
/** The kind of value that should be stored inside the field. */
|
187
|
-
type?:
|
187
|
+
type?: never;
|
188
188
|
}) | (ModelFieldBasics & {
|
189
189
|
/** The kind of value that should be stored inside the field. */
|
190
|
-
type
|
190
|
+
type: 'boolean' | 'date' | 'json';
|
191
|
+
}) | (ModelFieldBasics & {
|
192
|
+
/** The kind of value that should be stored inside the field. */
|
193
|
+
type: 'string';
|
191
194
|
/** The collation sequence to use for the field value. */
|
192
195
|
collation?: ModelFieldCollation;
|
193
196
|
}) | (ModelFieldBasics & {
|
194
197
|
/** The kind of value that should be stored inside the field. */
|
195
|
-
type
|
198
|
+
type: 'number';
|
196
199
|
/**
|
197
200
|
* Automatically increments the value of the field with every new inserted record.
|
198
201
|
*/
|
199
202
|
increment?: boolean;
|
200
203
|
}) | (ModelFieldBasics & {
|
201
204
|
/** The kind of value that should be stored inside the field. */
|
202
|
-
type
|
205
|
+
type: 'link';
|
203
206
|
/** The target model of the relationship that is being established. */
|
204
207
|
target: string;
|
205
208
|
/** Whether the field should be related to one record, or many records. */
|