Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Commit

Permalink
docs: add type for params
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyWindsck committed May 3, 2021
1 parent cc70015 commit b971cac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions migrations/20210501165516-create-user.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import * as SequelizeDefault from 'sequelize';
import { QueryInterface } from 'sequelize';

export default {
up: async (queryInterface, Sequelize) => {
up: async (queryInterface: QueryInterface, Sequelize: typeof SequelizeDefault) => {
await queryInterface.createTable('Users', {
id: {
allowNull: false,
Expand All @@ -11,7 +14,7 @@ export default {
type: Sequelize.STRING,
},
screenName: {
type: Sequelize.STRING
type: Sequelize.STRING,
},
email: {
type: Sequelize.STRING,
Expand All @@ -29,7 +32,7 @@ export default {
},
});
},
down: async (queryInterface, _Sequelize) => {
down: async (queryInterface: QueryInterface, _Sequelize: typeof SequelizeDefault) => {
await queryInterface.dropTable('Users');
},
};

0 comments on commit b971cac

Please sign in to comment.