mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Follow works
This commit is contained in:
parent
e34c85e527
commit
350e31d6b6
39 changed files with 431 additions and 169 deletions
|
@ -1,18 +1,21 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
import * as Promise from 'bluebird'
|
||||
import * as Bluebird from 'bluebird'
|
||||
|
||||
export namespace ApplicationMethods {
|
||||
export type LoadMigrationVersion = () => Promise<number>
|
||||
export type LoadMigrationVersion = () => Bluebird<number>
|
||||
|
||||
export type UpdateMigrationVersion = (
|
||||
newVersion: number,
|
||||
transaction: Sequelize.Transaction
|
||||
) => Promise<[ number, ApplicationInstance[] ]>
|
||||
) => Bluebird<[ number, ApplicationInstance[] ]>
|
||||
|
||||
export type CountTotal = () => Bluebird<number>
|
||||
}
|
||||
|
||||
export interface ApplicationClass {
|
||||
loadMigrationVersion: ApplicationMethods.LoadMigrationVersion
|
||||
updateMigrationVersion: ApplicationMethods.UpdateMigrationVersion
|
||||
countTotal: ApplicationMethods.CountTotal
|
||||
}
|
||||
|
||||
export interface ApplicationAttributes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue