Revert "fix: Remove type from ModuleDefaults, combine unions"
This reverts commit 31ae9cf6bf.
This commit is contained in:
parent
31ae9cf6bf
commit
706f58f294
2 changed files with 15 additions and 7 deletions
|
|
@ -21,7 +21,7 @@ for (const module of modules) {
|
|||
text = text // add `...ModuleDefaults;` after the model type
|
||||
.split("\n")
|
||||
.flatMap(line => {
|
||||
return line.replace(/model ([A-Za-z]+) {/, "model $1 extends ModuleDefaults {");
|
||||
return line.replace(/model ([A-Za-z]+) {/, "model $1 extends Module {");
|
||||
// if (line.trimStart().startsWith(`type: "${module.name}"`)) {
|
||||
// return [
|
||||
// line,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue