{"id":312722,"date":"2020-11-07T21:01:00","date_gmt":"2020-11-07T21:01:00","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=312722"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=312722","title":{"rendered":"vuex + typescript = vuexok. \u0412\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0435\u0445\u0430\u043b \u0438 \u043e\u0431\u043e\u0433\u043d\u0430\u043b \u0432\u0441\u0435\u0445"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a.<\/p>\n<p>  \u041a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u044f \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0440\u0435\u043c\u044f \u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439\u00a0<s>\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e<\/s>\u00a0\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u0420\u0430\u043d\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u043b \u043d\u0430 react, \u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f vue. \u041d\u0443 \u0438 \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0432\u043e vue \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043d\u0435\u043c. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u043f\u0440\u044f\u043c\u043e-\u0442\u0430\u043a\u0438 \u0440\u0430\u0434\u0443\u0436\u043d\u043e, \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0431\u044b \u0435\u0449\u0435 \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0438 \u0432 typescript. \u0422\u0430\u043a \u0432 \u043c\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f typescript. \u0418 \u0435\u0441\u043b\u0438 \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e\u00a0<a href=\"https:\/\/ru.vuejs.org\/v2\/guide\/typescript.html#ad\">\u043d\u0435\u043f\u043b\u043e\u0445\u043e<\/a>, \u0442\u043e \u0441 vuex \u0432\u0441\u0451 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e. \u0422\u0430\u043a \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 5 \u0441\u0442\u0430\u0434\u0438\u0439 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0443 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435.<\/p>\n<h2>\u041e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435<\/h2>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0441\u0442\u043e\u0440\u0430:<\/p>\n<ol>\n<li>\u0412 \u043c\u043e\u0434\u0443\u043b\u044f\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0438\u043f\u044b typescript<\/li>\n<li>\u041c\u043e\u0434\u0443\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445, \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u043b\u044f \u0441\u0442\u0435\u0439\u0442\u0430, \u044d\u043a\u0448\u0435\u043d\u043e\u0432, \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u0433\u0435\u0442\u0442\u0435\u0440\u043e\u0432<\/li>\n<li>\u041d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 api \u0434\u043b\u044f vuex, \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a,\u00a0\u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a-\u0442\u043e \u0442\u0438\u043f\u044b typescript \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 vuex, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u043c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/li>\n<li>\u0412\u044b\u0437\u043e\u0432 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c<\/li>\n<li>\u041f\u0430\u043a\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435<\/li>\n<li>\u041d\u0435 \u0445\u043e\u0447\u0443 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u044d\u043a\u0448\u0435\u043d\u043e\u0432<\/li>\n<li>\u041e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (\u0410 \u043a\u0430\u043a \u0436\u0435 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e)<\/li>\n<\/ol>\n<p>  \u041d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0436\u0435 \u0437\u0440\u0435\u043b\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043a\u0430\u043a vuex \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 typescript. \u041d\u0443-\u0441, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c\u00a0<s>Google<\/s>\u00a0Yandex \u0438 \u043f\u043e\u0433\u043d\u0430\u043b\u0438. \u042f \u0431\u044b\u043b \u0443\u0432\u0435\u0440\u0435\u043d \u043d\u0430 100500% \u0447\u0442\u043e \u0441 typescript \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e (\u043a\u0430\u043a \u0436\u0435 \u044f \u043e\u0448\u0438\u0431\u0430\u043b\u0441\u044f). \u0415\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u044c vuex \u0438 typescript. \u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438\u0441\u044c, \u0431\u0435\u0437 \u043a\u043e\u0434\u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e. \u0412\u0441\u0451 \u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043d\u0438\u0436\u0435.<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>vuex-smart-module<\/b><\/p>\n<p>  <a href=\"https:\/\/github.com\/ktsn\/vuex-smart-module\">github.com\/ktsn\/vuex-smart-module<br \/>  <\/a>\u0414\u043e\u0431\u0440\u043e\u0442\u043d\u043e, \u0434\u0430\u0436\u0435 \u043e\u0447\u0435\u043d\u044c. \u0412\u0441\u0451 \u043f\u0440\u0438 \u0441\u0435\u0431\u0435, \u043d\u043e \u043b\u0438\u0447\u043d\u043e \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c \u0442\u043e, \u0447\u0442\u043e \u0434\u043b\u044f \u044d\u043a\u0448\u0435\u043d\u043e\u0432, \u043c\u0443\u0442\u0430\u0446\u0438\u0439, \u0441\u0442\u0435\u0439\u0442\u0430, \u0433\u0435\u0442\u0442\u0435\u0440\u043e\u0432 \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b. \u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u043a\u0443\u0441\u043e\u0432\u0449\u0438\u043d\u0430, \u043d\u043e \u044d\u0442\u043e \u044f \u0438 \u043c\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442) \u0418 \u0432 \u0446\u0435\u043b\u043e\u043c \u0432\u043e\u043f\u0440\u043e\u0441 \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0435\u0448\u0435\u043d \u043d\u0435 \u0434\u043e \u043a\u043e\u043d\u0446\u0430 (<a href=\"https:\/\/habr.com\/ru\/post\/459050\/#comment_20367182\">\u0432\u0435\u0442\u043a\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0441 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0447\u0435\u043c\u0443<\/a>).<\/p>\n<p>  <a href=\"https:\/\/github.com\/Meterius\/vuex-typescript-support\"><b>Vuex Typescript Support<\/b><\/a><\/p>\n<p>  <s>\u0425\u043e\u0440\u043e\u0448\u0430\u044f<\/s> \u043f\u043e\u043f\u044b\u0442\u043a\u0430, \u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u043c\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u043f\u0440\u0438\u043d\u044f\u043b\u043e\u0441\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c.<\/p>\n<p>  <a href=\"https:\/\/github.com\/championswimmer\/vuex-module-decorators\"><b>vuex-module-decorators<\/b><\/a><\/p>\n<p>  \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u044d\u0442\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u044c vuex \u0438 typescript. \u041f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430\u00a0vue-property-decorator, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c, \u0432 \u043e\u0431\u0449\u0435\u043c \u0441\u0443\u043f\u0435\u0440, \u043d\u043e\u2026<\/p>\n<p>  \u041d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0435\u0442. \u041a\u043b\u0430\u0441\u0441\u044b \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0442\u0441\u044f \u0438 issue \u043d\u0430 \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0432\u0438\u0441\u044f\u0442 \u0443\u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u0432\u043d\u043e! \u0410 \u0431\u0435\u0437 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430. \u0411\u043b\u0438\u043d\u2026<\/p>\n<h2>\u0413\u043d\u0435\u0432<\/h2>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u0431\u044b\u043b\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0436\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c, \u043d\u0443 \u0438\u043b\u0438 \u00b1 \u0442\u0430\u043a \u0436\u0435 \u2014 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u0442. \u042d\u0442\u043e \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0448\u044c \u0441\u0435\u0431\u0435: \u041d\u0443 \u0437\u0430\u0447\u0435\u043c \u044f \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 vue? \u041d\u0443 \u0442\u044b \u0436\u0435 \u0437\u043d\u0430\u0435\u0448\u044c react, \u043d\u0443 \u043f\u0438\u0441\u0430\u043b \u0431\u044b \u043d\u0430 react, \u0442\u0430\u043c \u0431\u044b \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043d\u0435 \u0431\u044b\u043b\u043e! \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 vue \u0438 \u0442\u0435\u0431\u0435 \u043d\u0430\u0434\u043e \u0432 \u043d\u0435\u043c \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u2014 \u0437\u0430\u0448\u0438\u0431\u0438\u0441\u044c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442. \u0410 \u043e\u043d\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0442\u0440\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u043d\u0435\u0440\u0432\u043e\u0432 \u0438 \u0431\u0435\u0441\u0441\u043e\u043d\u043d\u044b\u0445 \u043d\u043e\u0447\u0435\u0439? \u0421\u0438\u0434\u0438 \u043a\u0430\u043a \u0432\u0441\u0435, \u043f\u0438\u0448\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438\u043a\u0438, \u043d\u0435\u0442, \u0442\u0435\u0431\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0445 \u043d\u0430\u0434\u043e! \u0411\u0440\u043e\u0441\u0430\u0439 \u044d\u0442\u043e\u0442 vue! \u041f\u0438\u0448\u0438 \u043d\u0430 react, \u043f\u0440\u043e\u043a\u0430\u0447\u0438\u0432\u0430\u0439\u0441\u044f \u0432 \u043d\u0435\u043c, \u0437\u0430 \u043d\u0435\u0433\u043e \u0438 \u043f\u043b\u0430\u0442\u044f\u0442 \u0431\u043e\u043b\u044c\u0448\u0435!<\/p>\n<p>  \u0412 \u0442\u043e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442 \u044f \u0431\u044b\u043b \u0433\u043e\u0442\u043e\u0432 \u0445\u0435\u0439\u0442\u0438\u0442\u044c vue \u043a\u0430\u043a \u043d\u0438\u043a\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0439, \u043d\u043e \u044d\u0442\u043e \u0431\u044b\u043b\u0438 \u044d\u043c\u043e\u0446\u0438\u0438, \u0438 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u0432\u0441\u0451 \u0436\u0435 \u0431\u044b\u043b \u0432\u044b\u0448\u0435 \u044d\u0442\u043e\u0433\u043e. Vue \u0438\u043c\u0435\u0435\u0442 (\u043d\u0430 \u043c\u043e\u0439 \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434) \u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432 \u043d\u0430\u0434 react, \u043d\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0430 \u043d\u0435 \u0431\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u043f\u043e\u043b\u0435 \u0441\u0440\u0430\u0436\u0435\u043d\u0438\u0439. \u0418 vue, \u0438 react \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443 \u0445\u043e\u0440\u043e\u0448\u0438, \u0430 \u0442\u0430\u043a \u043a\u0430\u043a \u0443\u0436\u0435 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043d\u0430 vue, \u0442\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0433\u043b\u0443\u043f\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0430 react. \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0438\u0442\u044c, \u0447\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c \u0441 vuex.<\/p>\n<h2>\u0422\u043e\u0440\u0433<\/h2>\n<p>  \u041d\u0443 \u0447\u0442\u043e \u0436\u0435, \u0434\u0435\u043b\u0430 \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u041c\u043e\u0436\u0435\u0442 \u0442\u043e\u0433\u0434\u0430 vuex-smart-module? \u042d\u0442\u043e\u0442 \u043f\u0430\u043a\u0435\u0442 \u0432\u0440\u043e\u0434\u0435 \u0445\u043e\u0440\u043e\u0448, \u0434\u0430, \u043d\u0430\u0434\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u043e\u0432, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0436\u0435. \u0418\u043b\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u043b\u044f \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0440\u0443\u043a\u0430\u043c\u0438 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0447\u0438\u0441\u0442\u044b\u0439 vuex? \u0422\u0430\u043c \u0438 vue3 c vuex4 \u043d\u0430 \u043f\u043e\u0434\u0445\u043e\u0434\u0435, \u043c\u043e\u0436\u0435\u0442 \u0443 \u043d\u0438\u0445 \u0434\u0435\u043b\u0430 \u0441 typescript \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u043b\u0443\u0447\u0448\u0435. \u0422\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u0432\u0430\u0439 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0447\u0438\u0441\u0442\u044b\u0439 vuex. \u0418 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u044d\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442, \u0432\u0441\u0451 \u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u0438\u043f\u043e\u0432 \u043d\u0435\u0442, \u043d\u043e \u0432\u044b \u0434\u0435\u0440\u0436\u0438\u0442\u0435\u0441\u044c. \u0418 \u0434\u0435\u0440\u0436\u0438\u043c\u0441\u044f \u0436\u0435)<\/p>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0430\u043a \u0438 \u043d\u0430\u0447\u0430\u043b \u0434\u0435\u043b\u0430\u0442\u044c, \u043d\u043e \u043a\u043e\u0434 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0441\u0442\u0440\u0443\u043e\u0437\u043d\u044b\u0439\u2026<\/p>\n<h2>\u0414\u0435\u043f\u0440\u0435\u0441\u0441\u0438\u044f<\/h2>\n<p>  \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435. \u041d\u043e \u043a\u0443\u0434\u0430 \u2014 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e. \u042d\u0442\u043e \u0431\u044b\u043b \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0442\u0447\u0430\u044f\u043d\u043d\u044b\u0439 \u0448\u0430\u0433. \u0420\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c\u00a0<a href=\"https:\/\/ru.vuejs.org\/v2\/guide\/state-management.html#%D0%9F%D1%80%D0%BE%D1%81%D1%82%D0%BE%D0%B9-%D0%BA%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80-%D1%81%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D1%8F-%D1%81-%D0%BD%D1%83%D0%BB%D1%8F\">\u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0441 \u043d\u0443\u043b\u044f<\/a>. \u041a\u043e\u0434 \u0431\u044b\u043b \u043d\u0430\u0431\u0440\u043e\u0441\u0430\u043d \u0437\u0430 \u043f\u0430\u0440\u0443 \u0447\u0430\u0441\u043e\u0432. \u0418 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u0430\u0436\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u0422\u0438\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0438 \u0434\u0430\u0436\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0435\u0441\u0442\u044c. \u041d\u043e \u0432\u0441\u043a\u043e\u0440\u0435 \u0430\u0433\u043e\u043d\u0438\u044f \u043e\u0442\u0447\u0430\u044f\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u0430 \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u0442\u044c, \u0430 \u0437\u0434\u0440\u0430\u0432\u044b\u0439 \u0441\u043c\u044b\u0441\u043b \u2014 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f. \u0412 \u043e\u0431\u0449\u0435\u043c, \u044d\u0442\u0430 \u0438\u0434\u0435\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u0430 \u0441\u0432\u0430\u043b\u043a\u0443. \u041f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u0441\u0447\u0435\u0442\u0443 \u044d\u0442\u043e \u0431\u044b\u043b \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u0448\u0438\u043d\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439. \u0410 \u043e\u043d \u0445\u043e\u0440\u043e\u0448 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043d\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0418 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 vuex \u2014 \u0432\u0441\u0451 \u0436\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0435\u0440\u0435\u0431\u043e\u0440 (\u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435\u00a0\u0432 \u043c\u043e\u0435\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438). \u0422\u0443\u0442 \u044f \u0443\u0436\u0435 \u0434\u043e\u0433\u0430\u0434\u044b\u0432\u0430\u043b\u0441\u044f, \u0447\u0442\u043e \u0441\u043e\u0432\u0441\u0435\u043c \u0437\u0430\u0433\u043d\u0430\u043b\u0441\u044f. \u041d\u043e \u043e\u0442\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u0431\u044b\u043b\u043e \u0443\u0436\u0435 \u043f\u043e\u0437\u0434\u043d\u043e.<\/p>\n<p>  \u041d\u043e \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0442\u043e \u043a\u043e\u0434 \u0442\u0443\u0442: (\u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u0437\u0440\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u044d\u0442\u043e\u0442 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442, \u043d\u043e \u043f\u0443\u0442\u044c \u0431\u0443\u0434\u0435\u0442)<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u0421\u043b\u0430\u0431\u043e\u043d\u0435\u0440\u0432\u043d\u044b\u043c \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">const getModule = &lt;T&gt;(name:string, module:T) =&gt; {   const $$state = {}   const computed: Record&lt;string, () =&gt; any&gt; = {}    Object.keys(module).forEach(key =&gt; {     const descriptor = Object.getOwnPropertyDescriptor(       module,       key,     );      if (!descriptor) {       return     }      if (descriptor.get) {       const get = descriptor.get        computed[key] = () =&gt; {         return get.call(module)       }     } else if (typeof descriptor.value === 'function') {       \/\/ @ts-ignore       module[key] = module[key].bind(module)     } else {       \/\/ @ts-ignore       $$state[key] = module[key]     }   })     const _vm = new Vue({     data: {       $$state,     },     computed   })    Object.keys(computed).forEach((computedName) =&gt; {     var propDescription = Object.getOwnPropertyDescriptor(_vm, computedName);     if (!propDescription) {       throw new Error()     }      propDescription.enumerable = true     Object.defineProperty(module, computedName, {       get() { return _vm[computedName as keyof typeof _vm]},       \/\/ @ts-ignore       set(val) { _vm[computedName] = val}     })   })    Object.keys($$state).forEach(name =&gt; {     var propDescription = Object.getOwnPropertyDescriptor($$state,name);     if (!propDescription) {       throw new Error()     }     Object.defineProperty(module, name, propDescription)   })    return module }  function createModule&lt;   S extends {[key:string]: any},   M,   P extends Chain&lt;M, S&gt; &gt;(state:S, name:string, payload:P) {   Object.getOwnPropertyNames(payload).forEach(function(prop) {     const descriptor = Object.getOwnPropertyDescriptor(payload, prop)      if (!descriptor) {       throw new Error()     }      Object.defineProperty(       state,       prop,       descriptor,     );   });    const module = state as S & P    return {     module,     getModule() {       return getModule(name, module)     },     extends&lt;E&gt;(payload:Chain&lt;E, typeof module&gt;) {       return createModule(module, name, payload)     }   } }  export default function SimpleStore&lt;T&gt;(name:string, payload:T) {   return createModule({}, name, payload) }  type NonUndefined&lt;A&gt; = A extends undefined ? never : A;  type Chain&lt;T extends {[key:string]: any}, THIS extends {[key:string]: any}&gt; = {   [K in keyof T]: (     NonUndefined&lt;T[K]&gt; extends Function        ? (this:THIS & T, ...p:Parameters&lt;T[K]&gt;) =&gt; ReturnType&lt;T[K]&gt;       : T[K]   ) } <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<h2><s>\u041f\u0440\u0438\u043d\u044f\u0442\u0438\u0435<\/s>\u00a0\u0420\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u043e\u0433\u043d\u0430\u043b \u0432\u0441\u0435\u0445. vuexok<\/h2>\n<p>  \u0414\u043b\u044f \u043d\u0435\u0442\u0435\u0440\u043f\u0435\u043b\u0438\u0432\u044b\u0445 \u043a\u043e\u0434 <a href=\"https:\/\/github.com\/spb-web\/vuexok\/blob\/master\/src\/vuexok.ts\">\u0442\u0443\u0442<\/a>, \u043a\u0440\u0430\u0442\u043a\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f <a href=\"https:\/\/spb-web.github.io\/vuexok\/\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432, \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043a\u0440\u043e\u0445\u043e\u0442\u043d\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u0447\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0445\u043e\u0442\u0435\u043b\u043a\u0438 \u0438 \u0434\u0430\u0436\u0435 \u0447\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043e\u0442 \u043d\u0435\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c. \u041d\u043e \u043e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443.<\/p>\n<p>  \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441 vuexok \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">import { createModule } from 'vuexok' import store from '@\/store'  export const counterModule = createModule(store, 'counterModule', {   state: {     count: 0,   },   actions: {     async increment() {       counterModule.mutations.plus(1)     },   },   mutations: {     plus(state, payload:number) {       state.count += payload     },     setNumber(state, payload:number) {       state.count = payload     },   },   getters: {     x2(state) {       return state.count * 2     },   }, })<\/code><\/pre>\n<p>  \u041d\u0443 \u0432\u0440\u043e\u0434\u0435 \u043f\u043e\u0447\u0442\u0438 \u043a\u0430\u043a vuex, \u0445\u043e\u0442\u044f\u2026 \u0447\u0442\u043e \u0442\u0430\u043c \u043d\u0430 10\u0439 \u0441\u0442\u0440\u043e\u043a\u0435?<\/p>\n<pre><code class=\"javascript\">counterModule.mutations.plus(1)<\/code><\/pre>\n<p>  \u0412\u043e\u0443! \u0410 \u044d\u0442\u043e \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u043e? \u041d\u0443 \u0441 vuexok \u2014 \u0434\u0430, \u043b\u0435\u0433\u0430\u043b\u044c\u043d\u043e) \u041c\u0435\u0442\u043e\u0434 createModule \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u043c\u043e\u0434\u0443\u043b\u044f vuex, \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0435\u0437 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 namespaced, \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0438\u043b\u0438 \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0441\u0442\u0435\u0439\u0442\u0430 \u0438 \u0433\u0435\u0442\u0442\u0435\u0440\u043e\u0432, \u043f\u0440\u0438\u0447\u0435\u043c \u0432\u0441\u0435 \u0442\u0438\u043f\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f. \u041f\u0440\u0438\u0447\u0435\u043c \u0438\u0437 \u043b\u044e\u0431\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430, \u0433\u0434\u0435 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0410 \u0447\u0442\u043e \u0442\u0430\u043c \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438?<\/p>\n<p>  \u0410 \u0441 \u043d\u0438\u043c\u0438 \u0432\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u044d\u0442\u043e vuex, \u0442\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c, commit, dispatch, mapState \u0438 \u0442.\u0434. \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<p>  \u041d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0442\u0438\u043f\u044b \u0438\u0437 \u043c\u043e\u0434\u0443\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445:<\/p>\n<pre><code class=\"javascript\">import Vue from 'vue' import { counterModule } from '@\/store\/modules\/counterModule' import Component from 'vue-class-component'  @Component({   template: '&lt;div&gt;{{ count }}&lt;\/div&gt;' }) export default class MyComponent extends Vue {   private get count() {     return counterModule.state.count \/\/ type number   } }<\/code><\/pre>\n<p>  \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e state \u0432 \u043c\u043e\u0434\u0443\u043b\u0435 \u0440\u0435\u0430\u043a\u0442\u0438\u0432\u043d\u043e, \u043a\u0430\u043a \u0438 \u0432 store.state, \u0442\u0430\u043a \u0447\u0442\u043e \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u044f \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 Vue \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u0432 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c\u043e\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0435. \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430. \u042f \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043b \u0441\u0442\u0435\u0439\u0442 Readonly \u0442\u0438\u043f\u043e\u043c, \u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0442\u0430\u043a \u0441\u0442\u0435\u0439\u0442 vuex \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432 \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0438 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u043f\u0440\u043e\u0441\u0442 \u0434\u043e \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u044f \u0438 \u0442\u043e\u0436\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u0438\u043f\u044b \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432<\/p>\n<pre><code class=\"javascript\"> private async doSomething() {    counterModule.mutations.setNumber(10)    \/\/ \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0432\u044b\u0437\u043e\u0432\u0443 this.$store.commit('counterModule\/setNumber', 10)    await counterModule.actions.increment()    \/\/ \u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0432\u044b\u0437\u043e\u0432\u0443 await this.$store.dispatch('counterModule\/increment')  }<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c. \u0427\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u0440\u0435\u0430\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 jwt, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0442\u043e\u0436\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u0435. \u0418 \u0442\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0443 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043c\u0435\u0442\u043e\u0434 watch. \u0412\u043e\u0442\u0447\u0435\u0440\u044b \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a store.watch. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438-\u0433\u0435\u0442\u0435\u0440\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0435\u0439\u0442 \u0438 \u0433\u0435\u0442\u0435\u0440\u044b \u043c\u043e\u0434\u0443\u043b\u044f<\/p>\n<pre><code class=\"javascript\">const unwatch = jwtModule.watch(   (state) =&gt; state.jwt,   (jwt) =&gt; console.log(`New token: ${jwt}`),   { immediate: true }, )<\/code><\/pre>\n<p>  \u0418\u0442\u0430\u043a, \u0447\u0442\u043e \u043c\u044b \u0438\u043c\u0435\u0435\u043c:<\/p>\n<ol>\n<li>\u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0442\u043e\u0440 \u2014 \u0435\u0441\u0442\u044c<\/li>\n<li>\u0442\u0438\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u2014 \u0435\u0441\u0442\u044c<\/li>\n<li>\u0430\u043f\u0438 \u043a\u0430\u043a \u0443 vuex \u0438 \u0432\u0441\u0451 \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c vuex \u043d\u0435 \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u2014 \u0435\u0441\u0442\u044c<\/li>\n<li>\u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043c \u2014 \u0435\u0441\u0442\u044c<\/li>\n<li>\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0430 (~400 \u0431\u0430\u0439\u0442 gzip) \u2014 \u0435\u0441\u0442\u044c<\/li>\n<li>\u043d\u0435 \u0438\u043c\u0435\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0430\u0445 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0438 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u2014 \u0435\u0441\u0442\u044c<\/li>\n<li>\u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u2014 \u0435\u0441\u0442\u044c<\/li>\n<\/ol>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u0444\u0438\u0447\u0438 \u043d\u0435\u0442 \u0432\u043e vuex \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u044d\u0442\u043e \u0436\u0435 \u043e\u0444\u0438\u0433\u0435\u0442\u044c \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u043e!<br \/>  \u0427\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 vuex4 \u0438 vue3 \u2014 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b, \u043d\u043e \u0441\u0443\u0434\u044f \u043f\u043e \u0434\u043e\u043a\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e.<\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0440\u0435\u0448\u0435\u043d\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445:<\/p>\n<p>  <a href=\"https:\/\/habr.com\/ru\/post\/505608\/\">Vuex \u2013 \u0440\u0435\u0448\u0430\u0435\u043c \u0441\u0442\u0430\u0440\u044b\u0439 \u0441\u043f\u043e\u0440 \u043d\u043e\u0432\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/503678\/\">Vuex \u043d\u0430\u0440\u0443\u0448\u0430\u0435\u0442 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044e<\/a><\/p>\n<h3>\u0412\u043b\u0430\u0436\u043d\u044b\u0435 \u043c\u0435\u0447\u0442\u044b:<\/h3>\n<p>  \u0411\u044b\u043b\u043e \u0431\u044b \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a \u0447\u0442\u043e \u0431\u044b \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0431\u044b\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043c\u0443\u0442\u0430\u0446\u0438\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u044d\u043a\u0448\u0435\u043d\u044b.<\/p>\n<p>  \u041a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0442\u0438\u043f\u043e\u0432 typescript \u2014 \u0445\u0435\u0440 \u0435\u0433\u043e \u0437\u043d\u0430\u0435\u0442. \u041d\u043e \u0435\u0441\u043b\u0438 \u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"javascript\">{   actions: {     one(injectee) {        injectee.actions.two()     },     two() {       console.log('tada!')     } } <\/code><\/pre>\n<p>  \u0422\u043e \u0440\u0430\u0434\u043e\u0441\u0442\u0438 \u043c\u043e\u0435\u0439 \u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0440\u0435\u0434\u0435\u043b\u0430. \u041d\u043e \u0436\u0438\u0437\u043d\u044c, \u0432\u043f\u0440\u043e\u0447\u0435\u043c \u043a\u0430\u043a \u0438 typescript, \u0441\u0443\u0440\u043e\u0432\u0430\u044f \u0448\u0442\u0443\u043a\u0430.<\/p>\n<p>  \u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441 vuex \u0438 typescript. \u041d\u0443, \u0432\u0440\u043e\u0434\u0435 \u0432\u044b\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0441\u044f. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/526902\/\"> https:\/\/habr.com\/ru\/post\/526902\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a.<\/p>\n<p>  \u041a\u0430\u043a \u0438 \u043c\u043d\u043e\u0433\u0438\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438, \u044f \u0432 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0440\u0435\u043c\u044f \u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439\u00a0<s>\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e<\/s>\u00a0\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u0420\u0430\u043d\u044c\u0448\u0435 \u043f\u0438\u0441\u0430\u043b \u043d\u0430 react, \u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f vue. \u041d\u0443 \u0438 \u0447\u0442\u043e \u0431\u044b \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0432\u043e vue \u043d\u0430\u0447\u0430\u043b \u043f\u0438\u043b\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043d\u0435\u043c. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e, \u043f\u0440\u044f\u043c\u043e-\u0442\u0430\u043a\u0438 \u0440\u0430\u0434\u0443\u0436\u043d\u043e, \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u043d\u0430\u0434\u043e \u0431\u044b \u0435\u0449\u0435 \u043f\u0440\u043e\u043a\u0430\u0447\u0430\u0442\u044c\u0441\u044f \u0438 \u0432 typescript. \u0422\u0430\u043a \u0432 \u043c\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f typescript. \u0418 \u0435\u0441\u043b\u0438 \u0441 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u043c\u0438 \u0432\u0441\u0451 \u0431\u044b\u043b\u043e\u00a0<a href=\"https:\/\/ru.vuejs.org\/v2\/guide\/typescript.html#ad\">\u043d\u0435\u043f\u043b\u043e\u0445\u043e<\/a>, \u0442\u043e \u0441 vuex \u0432\u0441\u0451 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e. \u0422\u0430\u043a \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u0432\u0441\u0435 5 \u0441\u0442\u0430\u0434\u0438\u0439 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u0443 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435.<\/p>\n<h2>\u041e\u0442\u0440\u0438\u0446\u0430\u043d\u0438\u0435<\/h2>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0441\u0442\u043e\u0440\u0430:<\/p>\n<ol>\n<li>\u0412 \u043c\u043e\u0434\u0443\u043b\u044f\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0438\u043f\u044b typescript<\/li>\n<li>\u041c\u043e\u0434\u0443\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043b\u0435\u0433\u043a\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445, \u0434\u043e\u043b\u0436\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0442\u0438\u043f\u044b \u0434\u043b\u044f \u0441\u0442\u0435\u0439\u0442\u0430, \u044d\u043a\u0448\u0435\u043d\u043e\u0432, \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u0433\u0435\u0442\u0442\u0435\u0440\u043e\u0432<\/li>\n<li>\u041d\u0435 \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 api \u0434\u043b\u044f vuex, \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a,\u00a0\u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043a-\u0442\u043e \u0442\u0438\u043f\u044b typescript \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441 \u043c\u043e\u0434\u0443\u043b\u044f\u043c\u0438 vuex, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u043e\u043c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/li>\n<li>\u0412\u044b\u0437\u043e\u0432 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u044d\u043a\u0448\u0435\u043d\u043e\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c<\/li>\n<li>\u041f\u0430\u043a\u0435\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435<\/li>\n<li>\u041d\u0435 \u0445\u043e\u0447\u0443 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0441 \u0438\u043c\u0435\u043d\u0430\u043c\u0438 \u043c\u0443\u0442\u0430\u0446\u0438\u0439 \u0438 \u044d\u043a\u0448\u0435\u043d\u043e\u0432<\/li>\n<li>\u041e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c (\u0410 \u043a\u0430\u043a \u0436\u0435 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e)<\/li>\n<\/ol>\n<p>  \u041d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u0443\u0436\u0435 \u0437\u0440\u0435\u043b\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043a\u0430\u043a vuex \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 typescript. \u041d\u0443-\u0441, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c\u00a0<s>Google<\/s>\u00a0Yandex \u0438 \u043f\u043e\u0433\u043d\u0430\u043b\u0438. \u042f \u0431\u044b\u043b \u0443\u0432\u0435\u0440\u0435\u043d \u043d\u0430 100500% \u0447\u0442\u043e \u0441 typescript \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u043d\u043e (\u043a\u0430\u043a \u0436\u0435 \u044f \u043e\u0448\u0438\u0431\u0430\u043b\u0441\u044f). \u0415\u0441\u0442\u044c \u043a\u0443\u0447\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043f\u044b\u0442\u043e\u043a \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u044c vuex \u0438 typescript. \u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043b\u0438\u0441\u044c, \u0431\u0435\u0437 \u043a\u043e\u0434\u0430 \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0437\u0434\u0443\u0432\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e. \u0412\u0441\u0451 \u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043d\u0438\u0436\u0435.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-312722","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312722"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312722\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}