Skip to content

Commit

Permalink
refactor: drop readonly flag from certain static properties
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 16, 2020
1 parent 8e8df45 commit 2252ef4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions adonis-typings/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,12 @@ declare module '@ioc:Adonis/Lucid/Model' {
* The primary key for finding unique referencing to a
* model
*/
readonly primaryKey: string
primaryKey: string

/**
* Custom database connection to use
*/
readonly connection?: string
connection?: string

/**
* Adapter to work as a bridge between query builder and the model
Expand All @@ -365,18 +365,18 @@ declare module '@ioc:Adonis/Lucid/Model' {
* Whether primary key is auto incrementing or not. If not, then
* end user must provide the value for the primary key
*/
readonly increments: boolean
increments: boolean

/**
* Database table to use
*/
readonly table: string
table: string

/**
* Refs are named value pair on model used mainly for autocompleting
* the query constraints
*/
readonly $refs: { [key: string]: string }
$refs: { [key: string]: string }

/**
* Creating model from adapter results
Expand Down

0 comments on commit 2252ef4

Please sign in to comment.