mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
Stricter models typing
This commit is contained in:
parent
9a320a06b6
commit
16c016e8b1
54 changed files with 148 additions and 95 deletions
|
@ -1,4 +1,5 @@
|
|||
import { AllowNull, Column, CreatedAt, DataType, HasMany, Model, Table, UpdatedAt } from 'sequelize-typescript'
|
||||
import { AttributesOnly } from '@shared/core-utils'
|
||||
import { OAuthTokenModel } from './oauth-token'
|
||||
|
||||
@Table({
|
||||
|
@ -14,7 +15,7 @@ import { OAuthTokenModel } from './oauth-token'
|
|||
}
|
||||
]
|
||||
})
|
||||
export class OAuthClientModel extends Model {
|
||||
export class OAuthClientModel extends Model<Partial<AttributesOnly<OAuthClientModel>>> {
|
||||
|
||||
@AllowNull(false)
|
||||
@Column
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue