fabioformosa / metamorphosis-nestjs Goto Github PK
View Code? Open in Web Editor NEWConversion service for NestJs Framework
License: MIT License
Conversion service for NestJs Framework
License: MIT License
So, if a developer changes the target type of a converter from a GivenType
to Promise<GivenType>
, the IDE could show an advice to add await
in all conversion toward GivenType
.
Current convert function AK convert(source: S): T Does not enable passing user options to the convert function
For example when using class-transformer groups & version are part of the optional fields that may be very useful especially "version" -> the convert function behavior should change as per Version ( as DTO or Entity might change )
Now metamorphosis-nestjs requires typegoose 6.1.6 as peer dependency, to avoid use of plainToClass for nested document.
The name of conversion service in metamorphosis-nest
is the same of conversion service in metamorphosis-typescript
Use Debug Mode Flag supported by metamorphosis-typescript
What if my converter must perform async operations to fulfill the conversion?
after move from node 12.18.1 to 12.18.4 with nest 7.5.2
Only a single Converter is registered, when checked
const converterDecorator = (sourceClass, targetClass) => {
return function (ConverterConstructor) {
All converters are getting to this point
return class extends ConverterConstructor {
constructor(...args) {
super(...args);
converterRegistry.register(this, sourceClass, targetClass);
But only a single converter per Module is actually registerd
}
};
};
};
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.