mirror of https://github.com/Chocobozzz/PeerTube
24 lines
551 B
TypeScript
24 lines
551 B
TypeScript
|
import * as Sequelize from 'sequelize'
|
||
|
|
||
|
export namespace JobMethods {
|
||
|
export type ListWithLimit = (limit, state, callback) => void
|
||
|
}
|
||
|
|
||
|
export interface JobClass {
|
||
|
listWithLimit: JobMethods.ListWithLimit
|
||
|
}
|
||
|
|
||
|
export interface JobAttributes {
|
||
|
state: string
|
||
|
handlerName: string
|
||
|
handlerInputData: object
|
||
|
}
|
||
|
|
||
|
export interface JobInstance extends JobClass, JobAttributes, Sequelize.Instance<JobAttributes> {
|
||
|
id: number
|
||
|
createdAt: Date
|
||
|
updatedAt: Date
|
||
|
}
|
||
|
|
||
|
export interface JobModel extends JobClass, Sequelize.Model<JobInstance, JobAttributes> {}
|