1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Create types for model enums

This commit is contained in:
Chocobozzz 2017-06-16 10:36:18 +02:00
parent 70c065d64c
commit ee9e7b61f5
21 changed files with 89 additions and 29 deletions

View file

@ -3,10 +3,12 @@ import * as Sequelize from 'sequelize'
import { VideoInstance } from '../video'
import { PodInstance } from '../pod'
import { RequestVideoEventType } from '../../../shared/models/request-scheduler.model'
export type RequestsVideoEventGrouped = {
[ podId: number ]: {
id: number
type: string
type: RequestVideoEventType
count: number
video: VideoInstance
pod: PodInstance
@ -35,7 +37,7 @@ export interface RequestVideoEventClass {
}
export interface RequestVideoEventAttributes {
type: string
type: RequestVideoEventType
count: number
}