From 4ef4ea95c25f8bb73614b64b42beb93365fce815 Mon Sep 17 00:00:00 2001 From: drodichkin Date: Mon, 28 Feb 2022 14:07:14 +0300 Subject: [PATCH] For #266: Add docs info about including module methods to tsconfig for inline typing --- docs/pages/en/2.accessor/2.dynamic-modules.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/pages/en/2.accessor/2.dynamic-modules.md b/docs/pages/en/2.accessor/2.dynamic-modules.md index 91a42ff6..b9881ae6 100644 --- a/docs/pages/en/2.accessor/2.dynamic-modules.md +++ b/docs/pages/en/2.accessor/2.dynamic-modules.md @@ -138,3 +138,16 @@ export default Vue.extend({ } }) ``` + +### Typed $accessor methods +If you want methods `$accessorRegisterModule` and `$accessorUnregisterModule` to be typed, please add `nuxt-typed-vuex` package to `tsconfig.json` types. + +```json{}[tsconfig.json] +{ + { + "types": [ + "nuxt-typed-vuex" + ] + } +} +```