my-fit-decodable-decorators
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Installation

npm i my-fit-decodable-decorators

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 :

method?: "object" | "exact" | "inexact"; That refer to the documentation of https://www.npmjs.com/package/decoders. Default : "exact"

@decodableAttribute([options])

@decodableArrayAttribute(string: type)

@decodableClassAttribute(new myClass)

@validate()

@params(new myClass)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    0
    • latest

Version History

Package Sidebar

Install

npm i my-fit-decodable-decorators

Weekly Downloads

1

Version

1.0.4

License

Apache-2.0

Unpacked Size

37 kB

Total Files

30

Last publish

Collaborators

  • jadoux