In 2.0.0 you can import individual validators: import { string } from "vue-types"
But is the old style supposed to work still?
import VueTypes from "vue-types";
props: { foo: VueTypes.string.def("") }
It gives me an error: Uncaught TypeError: _vueTypes2.default.string.def is not a function
Basically VueTypes.string is a function, and VueTypes.string.def is undefined.
Usage example implies that old style should still work: https://dwightjack.github.io/vue-types/#usage-example