20 lines
479 B
TypeScript
20 lines
479 B
TypeScript
|
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> {}
|