Configuration
VueTypes has a global configuration object that can be used to customize the library's behavior.
The configuration is exposed both as a property of the default export and as a named export:
js
import { config } from 'vue-types'
VueTypes.config === config
Configuration Options
silent
: (boolean, defaultfalse
) Set totrue
to prevent VueTypes from logging validation warnings.logLevel
: (string, defaultwarn
) Allows choosing which console method used to display validation errors. Available options arelog
,warn
,error
,debug
, andinfo
.