Type models
This commit is contained in:
parent
65fcc3119c
commit
e02643f32e
76 changed files with 1710 additions and 816 deletions
31
server/models/video-blacklist-interface.ts
Normal file
31
server/models/video-blacklist-interface.ts
Normal file
|
@ -0,0 +1,31 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
|
||||
export namespace BlacklistedVideoMethods {
|
||||
export type ToFormatedJSON = () => void
|
||||
|
||||
export type CountTotal = (callback) => void
|
||||
export type List = (callback) => void
|
||||
export type ListForApi = (start, count, sort, callback) => void
|
||||
export type LoadById = (id, callback) => void
|
||||
export type LoadByVideoId = (id, callback) => void
|
||||
}
|
||||
|
||||
export interface BlacklistedVideoClass {
|
||||
toFormatedJSON: BlacklistedVideoMethods.ToFormatedJSON
|
||||
countTotal: BlacklistedVideoMethods.CountTotal
|
||||
list: BlacklistedVideoMethods.List
|
||||
listForApi: BlacklistedVideoMethods.ListForApi
|
||||
loadById: BlacklistedVideoMethods.LoadById
|
||||
loadByVideoId: BlacklistedVideoMethods.LoadByVideoId
|
||||
}
|
||||
|
||||
export interface BlacklistedVideoAttributes {
|
||||
}
|
||||
|
||||
export interface BlacklistedVideoInstance extends BlacklistedVideoClass, BlacklistedVideoAttributes, Sequelize.Instance<BlacklistedVideoAttributes> {
|
||||
id: number
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
}
|
||||
|
||||
export interface BlacklistedVideoModel extends BlacklistedVideoClass, Sequelize.Model<BlacklistedVideoInstance, BlacklistedVideoAttributes> {}
|
Loading…
Add table
Add a link
Reference in a new issue