mrcrowl / vuex-typex

Typescript builder for strongly-typed access to Vuex Store modules
MIT License
193 stars 22 forks source link

fix: wrong module transpile and incorrect interface usage in examples #13

Closed christopher-kiss closed 6 years ago

christopher-kiss commented 6 years ago

Fixes SyntaxError: Unexpected token import error when trying to run tests using this package

This will convert

import { Store } from "vuex";

into

var vuex_1 = require("vuex");

allowing tests to not fail

Fixes #6

christopher-kiss commented 6 years ago

Also committed a fix for the wrong interface usage. This clears up the example.

christopher-kiss commented 6 years ago

Going to close this pull request as author doesn't seem active.

I've fixed these in my fork of this package, found here: https://github.com/ChristopherKiss/vuex-type-safety

This fixes the issues and gets tests working.