]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/request-to-pod-interface.ts
Type functions
[github/Chocobozzz/PeerTube.git] / server / models / request-to-pod-interface.ts
index 52116d6c4d2853d9e7756b7a8198b2c3810be52d..6d75ca6e51f6986e7ce4fc540cbb684e7939c836 100644 (file)
@@ -1,7 +1,8 @@
 import * as Sequelize from 'sequelize'
 
 export namespace RequestToPodMethods {
-  export type RemoveByRequestIdsAndPod = (requestsIds, podId, callback) => void
+  export type RemoveByRequestIdsAndPodCallback = (err: Error) => void
+  export type RemoveByRequestIdsAndPod = (requestsIds: number[], podId: number, callback?: RemoveByRequestIdsAndPodCallback) => void
 }
 
 export interface RequestToPodClass {
@@ -11,7 +12,7 @@ export interface RequestToPodClass {
 export interface RequestToPodAttributes {
 }
 
-export interface RequestToPodInstance extends Sequelize.Instance<RequestToPodAttributes> {
+export interface RequestToPodInstance extends RequestToPodClass, RequestToPodAttributes, Sequelize.Instance<RequestToPodAttributes> {
   id: number
   createdAt: Date
   updatedAt: Date