dtobase
This library will provide you 2 tools:
- DtoConversion: to help you convert from ViewModel to Dto with strictly typed
- MemStore: in memory storage, to help you register your objects and later use in other part of your code
Changes log
v1.0.4
- Support default value as a fuction
v1.0.3
- fix bug when parsing default value
v1.0.2
- Fix bug when parsing default value
v1.0.1
- MemStore: remove function
remove
- MemStore: add overloading for function
registerDto
{ super; } static { return 'myDtoType'; } static { return 'myDtoSubType'; } const instance = ; instance; // Explicity register dto instance; // Explicity register dto with subtype = '' instance; // Implicit register Dto from it class
Data Transfer Object Convertion
DtoConvertion
Sample dto
'use strict'; { superfalse; this } ## MemStore