mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Type models
This commit is contained in:
parent
65fcc3119c
commit
e02643f32e
76 changed files with 1710 additions and 816 deletions
19
server/models/tag-interface.ts
Normal file
19
server/models/tag-interface.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import * as Sequelize from 'sequelize'
|
||||
|
||||
export namespace TagMethods {
|
||||
export type FindOrCreateTags = (tags, transaction, callback) => void
|
||||
}
|
||||
|
||||
export interface TagClass {
|
||||
findOrCreateTags: TagMethods.FindOrCreateTags
|
||||
}
|
||||
|
||||
export interface TagAttributes {
|
||||
name: string
|
||||
}
|
||||
|
||||
export interface TagInstance extends TagClass, TagAttributes, Sequelize.Instance<TagAttributes> {
|
||||
id: number
|
||||
}
|
||||
|
||||
export interface TagModel extends TagClass, Sequelize.Model<TagInstance, TagAttributes> {}
|
Loading…
Add table
Add a link
Reference in a new issue