]>
Commit | Line | Data |
---|---|---|
e02643f3 C |
1 | import * as Sequelize from 'sequelize' |
2 | ||
3 | export namespace TagMethods { | |
4 | export type FindOrCreateTags = (tags, transaction, callback) => void | |
5 | } | |
6 | ||
7 | export interface TagClass { | |
8 | findOrCreateTags: TagMethods.FindOrCreateTags | |
9 | } | |
10 | ||
11 | export interface TagAttributes { | |
12 | name: string | |
13 | } | |
14 | ||
15 | export interface TagInstance extends TagClass, TagAttributes, Sequelize.Instance<TagAttributes> { | |
16 | id: number | |
17 | } | |
18 | ||
19 | export interface TagModel extends TagClass, Sequelize.Model<TagInstance, TagAttributes> {} |