1.0.4 • Published 3 years ago

my-fit-decodable-decorators v1.0.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
3 years ago

Installation

Description

This package add typescript decorators to use the runtime controller : https://www.npmjs.com/package/decoders. The decoretors consider, that you don't want add more declaration of your class.

Usage

@decodable(options)

It's a class decorator. You have to use the @decodable() on the class that you want a control. This decorator can take an option parameter :

@decodableAttribute(options)

@decodableArrayAttribute(string: type)

@decodableClassAttribute(new myClass)

@validate()

@params(new myClass)