fix: Remove type from ModuleDefaults, combine unions
This commit is contained in:
parent
ddd1864c3f
commit
31ae9cf6bf
2 changed files with 7 additions and 15 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 Module {");
|
||||
return line.replace(/model ([A-Za-z]+) {/, "model $1 extends ModuleDefaults {");
|
||||
// if (line.trimStart().startsWith(`type: "${module.name}"`)) {
|
||||
// return [
|
||||
// line,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue