vuept

1.2.0 • Public • Published

vuept

Another style to declare the props type for vue components.

Supported these types

import { num, str } from 'vuept'
//...
{
  props: {
    propA: Function,
    propB: num.default(() => 'bar'), // {type: Number, default: () => 'bar'}
    propC: str.required // {type: String, required: true}
  }
  //...
}

/vuept/

    Package Sidebar

    Install

    npm i vuept

    Weekly Downloads

    3,618

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • ginhing