Skip to content

Commit

Permalink
Added typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
gsdnano committed Jul 18, 2017
1 parent bc09ba7 commit d5eec88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ var auto = new SequelizeAuto('database', 'user', 'pass', {
Add -z to cli options or `typescript: true` to programmatic options. Model usage in a ts file:

```js
...
const sequelize = db.config.start();
import * as dbDef from './db/models/db.d';
const devices:dbDef.DeviceModel = sequelize.import('./db/models/Device');
devices.findAll({ // the ts definition properly hooks into sequelize methods
Expand Down

0 comments on commit d5eec88

Please sign in to comment.