1.1.3 • Published 1 year ago

laghaie-repository v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Repository Package for building CRUD service

Features

This package enable to persists data in (Map, LocalStorage)

Map Functions

  • getById for retriveing one Item
  • add for adding one Item

Full examples

import { Entity, MapRepository } from "laghaie-repository";

class Profile implements Entity<number>{
    constructor(
        public id: number,
        public fullName: string) { }
}

class ProfileMapRepository extends MapRepository<number, Profile>{

}


let repository = new ProfileMapRepository();
repository.add(new Profile(1, 'faraz laghaie'));

let profile = repository.get(2);

console.log(profile);
1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago