Skip to content

Commit

Permalink
fixed(stub): indentation levels
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgobich committed Sep 18, 2024
1 parent b762de8 commit e028de0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stubs/generate/model.stub
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
{{ statement }}{{{ '\n' }}}
{{ /each }}
export default class {{ model.name }} extends BaseModel {{ '{' }}{{ #each model.columns as column }}
{{ column.getDecorator() }}
declare {{ column.name }}: {{ column.type }}{{ column.isNullable ? ' | null' : '' }}
{{ column.getDecorator() }}
declare {{ column.name }}: {{ column.type }}{{ column.isNullable ? ' | null' : '' }}
{{ /each }}{{ #each model.relationships as relationship, index }}
{{ relationship.decorator }}
{{{ relationship.property }}}{{ index + 1 < model.relationships.length ? '\n' : '' }}
{{ relationship.decorator }}
{{{ relationship.property }}}{{ index + 1 < model.relationships.length ? '\n' : '' }}
{{ /each }}
}

Expand Down

0 comments on commit e028de0

Please sign in to comment.