@ronin/compiler 0.17.3 → 0.17.4-corny-ron-1099-experimental-383
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 +1 -1
- package/dist/index.js +11 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -277,7 +277,7 @@ type ModelIndex<T extends ModelEntityList<ModelField> = ModelEntityList<ModelFie
|
|
277
277
|
/**
|
278
278
|
* The list of fields in the model for which the index should be created.
|
279
279
|
*/
|
280
|
-
fields: Array<ModelIndexField<T
|
280
|
+
fields: [ModelIndexField<T>, ...Array<ModelIndexField<T>>];
|
281
281
|
/**
|
282
282
|
* The identifier of the index.
|
283
283
|
*/
|
package/dist/index.js
CHANGED
@@ -1987,11 +1987,17 @@ var transformMetaQuery = (models, dependencyStatements, statementParams, query,
|
|
1987
1987
|
statementParts.push("WHEN", `(${withStatement})`);
|
1988
1988
|
}
|
1989
1989
|
const effectStatements = trigger.effects.map((effectQuery) => {
|
1990
|
-
return compileQueryInput(
|
1991
|
-
|
1992
|
-
|
1993
|
-
|
1994
|
-
|
1990
|
+
return compileQueryInput(
|
1991
|
+
// @ts-expect-error - The query is always wrapped in a `QUERY_SYMBOLS.QUERY` object.
|
1992
|
+
effectQuery[QUERY_SYMBOLS.QUERY],
|
1993
|
+
models,
|
1994
|
+
null,
|
1995
|
+
{
|
1996
|
+
returning: false,
|
1997
|
+
parentModel: existingModel,
|
1998
|
+
inlineDefaults: options.inlineDefaults
|
1999
|
+
}
|
2000
|
+
).main.statement;
|
1995
2001
|
});
|
1996
2002
|
statementParts.push("BEGIN");
|
1997
2003
|
statementParts.push(`${effectStatements.join("; ")};`);
|