mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Create types for model enums
This commit is contained in:
parent
70c065d64c
commit
ee9e7b61f5
21 changed files with 89 additions and 29 deletions
|
@ -1,6 +1,7 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
|
||||
import { PodInstance, PodAttributes } from '../pod'
|
||||
import { RequestEndpoint } from '../../../shared/models/request-scheduler.model'
|
||||
|
||||
export type RequestsGrouped = {
|
||||
[ podId: number ]: {
|
||||
|
@ -32,7 +33,7 @@ export interface RequestClass {
|
|||
|
||||
export interface RequestAttributes {
|
||||
request: object
|
||||
endpoint: string
|
||||
endpoint: RequestEndpoint
|
||||
}
|
||||
|
||||
export interface RequestInstance extends RequestClass, RequestAttributes, Sequelize.Instance<RequestAttributes> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue