Skip to content

Commit

Permalink
fix: export OrmConfigContract
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 13, 2020
1 parent 5e1816c commit 5ac5063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions adonis-typings/orm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ declare module '@ioc:Adonis/Lucid/Orm' {
HasManyThrough,
} from '@ioc:Adonis/Lucid/Relations'

export { OrmConfigContract } from '@ioc:Adonis/Lucid/Model'

export const BaseModel: ModelConstructorContract
export const column: ColumnDecorator
export const computed: ComputedDecorator
Expand Down
2 changes: 1 addition & 1 deletion templates/database.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const databaseConfig: DatabaseConfigContract & { orm: Partial<OrmConfigContract>
|
*/
orm: {
}
},
}

export default databaseConfig

0 comments on commit 5ac5063

Please sign in to comment.