From afb7a8fcf67be1658e97c673a0906d9551ecab69 Mon Sep 17 00:00:00 2001 From: Brock Reece Date: Wed, 29 Dec 2021 16:35:29 +0000 Subject: [PATCH] Add TS info to readme --- readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/readme.md b/readme.md index fc0fa53..4c859d5 100644 --- a/readme.md +++ b/readme.md @@ -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.