Skip to content

Commit 0bc7069

Browse files
chore: wip
1 parent 83f3cad commit 0bc7069

File tree

1 file changed

+4
-4
lines changed
  • storage/framework/core/types/src

1 file changed

+4
-4
lines changed

storage/framework/core/types/src/model.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ export interface ModelOptions extends Base {
6868
hasMany: {
6969
model: string // should be typed as ModelName
7070
foreignKey?: string
71-
}
71+
}[]
7272
belongsTo: {
7373
model: string // should be typed as ModelName
7474
foreignKey?: string
75-
} // belongsTo: 'User'
75+
}[] // belongsTo: 'User'
7676
belongsToMany: {
7777
model: string
7878
firstForeignKey?: string
7979
secondForeignKey?: string
8080
pivotTable?: string
81-
}
81+
}[]
8282
hasThrough: {
8383
model: string // should be typed as ModelName
8484
through: string
8585
using: string
86-
}
86+
}[]
8787

8888
get: {
8989
[key: string]: (value: any) => any

0 commit comments

Comments
 (0)