mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Type models
This commit is contained in:
parent
65fcc3119c
commit
e02643f32e
76 changed files with 1710 additions and 816 deletions
25
server/models/request-video-qadu-interface.ts
Normal file
25
server/models/request-video-qadu-interface.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
|
||||
export namespace RequestVideoQaduMethods {
|
||||
export type CountTotalRequests = (callback) => void
|
||||
export type ListWithLimitAndRandom = (limitPods, limitRequestsPerPod, callback) => void
|
||||
export type RemoveByRequestIdsAndPod = (ids, podId, callback) => void
|
||||
export type RemoveAll = (callback) => void
|
||||
}
|
||||
|
||||
export interface RequestVideoQaduClass {
|
||||
countTotalRequests: RequestVideoQaduMethods.CountTotalRequests
|
||||
listWithLimitAndRandom: RequestVideoQaduMethods.ListWithLimitAndRandom
|
||||
removeByRequestIdsAndPod: RequestVideoQaduMethods.RemoveByRequestIdsAndPod
|
||||
removeAll: RequestVideoQaduMethods.RemoveAll
|
||||
}
|
||||
|
||||
export interface RequestVideoQaduAttributes {
|
||||
type: string
|
||||
}
|
||||
|
||||
export interface RequestVideoQaduInstance extends Sequelize.Instance<RequestVideoQaduAttributes> {
|
||||
id: number
|
||||
}
|
||||
|
||||
export interface RequestVideoQaduModel extends RequestVideoQaduClass, Sequelize.Model<RequestVideoQaduInstance, RequestVideoQaduAttributes> {}
|
Loading…
Add table
Add a link
Reference in a new issue