va-ts-model
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.8 • Public • Published

    va-ts-model

    Simple base abstract model based on TypeScript decorators and reflect-metadata which helps with serializing and deserializing data.

    Creating models

      class Animal extends Model {
        @ModelProp()
        dateOfBirth: Date;
        @ModelProp(Date)
        name: string;
      }
     
      class Dog extends Animal {
        retrieve(): void {}
      }
     
      class Human extends Animal {
        @ModelProp()
        surname: string;
        @ModelProp(Dog)
        dogs: Dog[];
      }

    Keywords

    none

    Install

    npm i va-ts-model

    DownloadsWeekly Downloads

    0

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    36.7 kB

    Total Files

    16

    Last publish

    Collaborators

    • va-admin
    • mateusz.stefanczyk
    • mateuszbasinski-va
    • krzysztofskorupkadev
    • valueadd-robot
    • sikora00