Skip to content

Question: In 2.0.0, is VueTypes.string.def("") supposed to work still? #68

@attekemppila

Description

@attekemppila

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions