From ffde6a51402909d014ed9aa09e8e88373861e22c Mon Sep 17 00:00:00 2001 From: Alexander Shabunevich Date: Sun, 29 Nov 2020 19:31:41 +0300 Subject: [PATCH] Add basic typescript declarations --- README.md | 2 +- dist/es6/maska.esm.js | 2 +- dist/es6/maska.js | 2 +- dist/es6/maska.umd.js | 2 +- dist/maska.esm.js | 2 +- dist/maska.js | 2 +- dist/maska.umd.js | 2 +- docs/index.htm | 2 +- package.json | 6 ++++-- tsconfig.json | 9 +++++++++ types/directive.d.ts | 2 ++ types/index.d.ts | 8 ++++++++ types/mask.d.ts | 1 + types/maska.d.ts | 12 ++++++++++++ types/tokens.d.ts | 26 ++++++++++++++++++++++++++ types/utils.d.ts | 4 ++++ 16 files changed, 74 insertions(+), 10 deletions(-) create mode 100644 tsconfig.json create mode 100644 types/directive.d.ts create mode 100644 types/index.d.ts create mode 100644 types/mask.d.ts create mode 100644 types/maska.d.ts create mode 100644 types/tokens.d.ts create mode 100644 types/utils.d.ts diff --git a/README.md b/README.md index c6957c8..3e4f634 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ With Vue 3.x you need to explicitly add Maska `plugin` or `directive` to your ap ``` javascript const app = Vue.createApp({...}) // use as plugin -app.use(Maska.install); +app.use(Maska); // or as directive // app.directive('maska', Maska.maska); app.mount('#app'); diff --git a/dist/es6/maska.esm.js b/dist/es6/maska.esm.js index 54e104d..d2375bf 100644 --- a/dist/es6/maska.esm.js +++ b/dist/es6/maska.esm.js @@ -1,5 +1,5 @@ /*! - * maska v1.3.1 + * maska v1.3.2 * (c) 2019-2020 Alexander Shabunevich * Released under the MIT License. */ diff --git a/dist/es6/maska.js b/dist/es6/maska.js index 9cffcfe..ad2cb6c 100644 --- a/dist/es6/maska.js +++ b/dist/es6/maska.js @@ -1,5 +1,5 @@ /*! - * maska v1.3.1 + * maska v1.3.2 * (c) 2019-2020 Alexander Shabunevich * Released under the MIT License. */ diff --git a/dist/es6/maska.umd.js b/dist/es6/maska.umd.js index 9cffcfe..ad2cb6c 100644 --- a/dist/es6/maska.umd.js +++ b/dist/es6/maska.umd.js @@ -1,5 +1,5 @@ /*! - * maska v1.3.1 + * maska v1.3.2 * (c) 2019-2020 Alexander Shabunevich * Released under the MIT License. */ diff --git a/dist/maska.esm.js b/dist/maska.esm.js index 3720a63..878db3a 100644 --- a/dist/maska.esm.js +++ b/dist/maska.esm.js @@ -1,5 +1,5 @@ /*! - * maska v1.3.1 + * maska v1.3.2 * (c) 2019-2020 Alexander Shabunevich * Released under the MIT License. */ diff --git a/dist/maska.js b/dist/maska.js index 0b2c45a..be4f1b1 100644 --- a/dist/maska.js +++ b/dist/maska.js @@ -1,5 +1,5 @@ /*! - * maska v1.3.1 + * maska v1.3.2 * (c) 2019-2020 Alexander Shabunevich * Released under the MIT License. */ diff --git a/dist/maska.umd.js b/dist/maska.umd.js index 0b2c45a..be4f1b1 100644 --- a/dist/maska.umd.js +++ b/dist/maska.umd.js @@ -1,5 +1,5 @@ /*! - * maska v1.3.1 + * maska v1.3.2 * (c) 2019-2020 Alexander Shabunevich * Released under the MIT License. */ diff --git a/docs/index.htm b/docs/index.htm index 5345f63..96721cf 100644 --- a/docs/index.htm +++ b/docs/index.htm @@ -148,7 +148,7 @@ - +