Skip to content

Commit

Permalink
Fix merge conflicts (#25)
Browse files Browse the repository at this point in the history
Thank you!
  • Loading branch information
ivanpajon authored Dec 19, 2023
1 parent adacccb commit 1fe4143
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/codegen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,21 @@ ${tables
// ===== ${t.name} =====
export interface ${t.typeName}Response extends ${baseRecord} {
collectionName: '${t.name}';
${t.columns.response.join('\n' + indent)}
collectionName: '${t.name}';${!t.columns.response.length ? '' : `
${t.columns.response.join('\n' + indent)}`}
}
${
// view collections are readonly
t.type === 'view'
? ''
: `
export interface ${t.typeName}Create extends ${t.type === "base" ? "BaseCollectionRecordCreate" : "AuthCollectionRecordCreate"} {
export interface ${t.typeName}Create extends ${t.type === "base" ? "BaseCollectionRecordCreate" : "AuthCollectionRecordCreate"} ${!t.columns.create.length ? '{}' : `{
${t.columns.create.join('\n' + indent)}
}
}`}
export interface ${t.typeName}Update${t.type === "base" ? "" : " extends AuthCollectionRecordUpdate"} {
export interface ${t.typeName}Update${t.type === "base" ? "" : " extends AuthCollectionRecordUpdate"} ${!t.columns.update.length ? '{}' : `{
${t.columns.update.join('\n' + indent)}
}
}`}
`
}
export interface ${t.typeName}Collection {
Expand Down

0 comments on commit 1fe4143

Please sign in to comment.