Skip to content

Commit

Permalink
remove client-side boilerplate from generated schema-codegen ts/ts ou…
Browse files Browse the repository at this point in the history
…tput
  • Loading branch information
endel committed Mar 16, 2020
1 parent 438af2a commit 58d0756
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
12 changes: 0 additions & 12 deletions src/codegen/languages/js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ ${klass.properties.
filter(prop => prop.childType !== undefined).
map(prop => " " + generatePropertyInitializer(prop)).join("\n")}
}
onChange (changes) {
// onChange logic here.
}
onAdd () {
// onAdd logic here.
}
onRemove () {
// onRemove logic here.
}
}
${klass.properties.map(prop => generatePropertyDeclaration(klass.name, prop)).join("\n")}
Expand Down
19 changes: 0 additions & 19 deletions src/codegen/languages/ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,6 @@ ${allRefs.
export class ${klass.name} extends ${klass.extends} {
${klass.properties.map(prop => ` ${generateProperty(prop)}`).join("\n")}
constructor () {
super();
// initialization logic here.
}
onChange (changes: DataChange[]) {
// onChange logic here.
}
onAdd () {
// onAdd logic here.
}
onRemove () {
// onRemove logic here.
}
}
`;
}
Expand Down

0 comments on commit 58d0756

Please sign in to comment.