Skip to content

Commit

Permalink
Merge pull request #37 from nick-fytros/tyscript-declaration-file
Browse files Browse the repository at this point in the history
Tyscript declaration file
  • Loading branch information
danielcherubini committed Feb 26, 2017
2 parents 73b4cad + 2d5745d commit c4b8702
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ Finally you'll need to set the link to your copy of vue.js in the script... (thi
</style>
```

## Typescript support

Typescript declarations are published on NPM, so you don’t need external tools like Typings, as declarations are automatically imported with express-vue. That means all you need is a simple:

```js
import expressVue = require('express-vue');
```

## Todo

- Have the style sections do something!
Expand Down
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import * as expressVue from './index.js';
declare function expressVue(componentPath: string, options: Object, callback: Function): void;

export = expressVue;
export = expressVue;

0 comments on commit c4b8702

Please sign in to comment.