mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Move to promises
Closes https://github.com/Chocobozzz/PeerTube/issues/74
This commit is contained in:
parent
5fe7e89831
commit
6fcd19ba73
88 changed files with 1980 additions and 2505 deletions
|
@ -1,11 +1,13 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
import * as Promise from 'bluebird'
|
||||
|
||||
import { AbstractRequestToPodClass } from './abstract-request-interface'
|
||||
|
||||
export namespace RequestToPodMethods {
|
||||
export type RemoveByRequestIdsAndPodCallback = (err: Error) => void
|
||||
export type RemoveByRequestIdsAndPod = (requestsIds: number[], podId: number, callback?: RemoveByRequestIdsAndPodCallback) => void
|
||||
export type RemoveByRequestIdsAndPod = (requestsIds: number[], podId: number) => Promise<number>
|
||||
}
|
||||
|
||||
export interface RequestToPodClass {
|
||||
export interface RequestToPodClass extends AbstractRequestToPodClass {
|
||||
removeByRequestIdsAndPod: RequestToPodMethods.RemoveByRequestIdsAndPod
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue