Skip to content

Commit

Permalink
Add TS info to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BrockReece committed Dec 29, 2021
1 parent 3a78fe9 commit afb7a8f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readme.md
Expand Up @@ -20,6 +20,13 @@ $ npm install vue-moment
Vue.use(require('vue-moment'));
```

### Typescript (optional)
If you project is using Typescript, you can add type infomation using a 3rd party lib

```sh
npm install @types/vue-moment --save-dev
```

## Usage

Simply set `moment` as the filtering function and you're good to go. At least one argument is expected, which the filter assumes to be a `format` string if the argument doesn't match any of the other filtering methods.
Expand Down

0 comments on commit afb7a8f

Please sign in to comment.