marcelohmdias / vue-typed

:bulb: The easiest way to define types in Vue props

Home Page:https://www.npmjs.com/package/@marcelohmdias/vue-typed

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue Typed

The easiest way to define types in Vue prop.

Installation

npm install --save @marcelohmdias/vue-typed
# or
yarn add @marcelohmdias/vue-typed

Example

import Typed from '@marcelohmdias/vue-typed'

export default {

  name: 'Foo',

  props: {

    bar: Typed.is.str.with('baz').def()

  }
}

About

:bulb: The easiest way to define types in Vue props

https://www.npmjs.com/package/@marcelohmdias/vue-typed

License:MIT License


Languages

Language:TypeScript 76.6%Language:JavaScript 23.4%