reflect-metadata
sequelize-typescript-decorators
reflect-metadata | sequelize-typescript-decorators | |
---|---|---|
4 | 1 | |
3,205 | 0 | |
- | - | |
7.2 | 10.0 | |
7 months ago | about 4 years ago | |
TypeScript | TypeScript | |
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
reflect-metadata
-
Dynamic NestJS Listeners: Discover the Power of Lazy Loading
We could use the reflect-metadata library to store the metadata and then scan it manually to replace the placeholders with actual values, but there is a better way.
- TypeScript please give us types
-
Using modern decorators in TypeScript
Second, TypeScript 5.0 cannot emit decorator metadata. Subsequently, it doesn’t integrate with the Reflect API and won’t work with the reflect-metadata npm package.
-
Deconstructing an Object Relationship Mapper (ORM) in Typescript
Database columns will be mapped to domain object properties using decorators. This will include relationships and enum types. reflect-metadata stores metadata about the classes and properties. Most of the work is a simple map for each class, renaming db column properties to domain model properties and vice versa. Reflect.defineProperty holds a list of field metadata on the target class. This is where more database ORM logic could live in the future such as column type, length, etc. A base domain model entity will use this metadata to map the models appropriately.
sequelize-typescript-decorators
-
Deconstructing an Object Relationship Mapper (ORM) in Typescript
Sequelize Typescript Decorators
What are some alternatives?
protobuf-ts - Protobuf and RPC for TypeScript
di-compiler - A Custom Transformer for Typescript that enables compile-time Dependency Injection
arktype - TypeScript's 1:1 validator, optimized from editor to runtime
ferocity - Write Java expression trees, statements, methods and classes with a LISP-like internal DSL
schemats - Generate typescript interface definitions from SQL database schema
InversifyJS - A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
typescript-needs-types - TypeScript please give us types.
proposal-decorators - Decorators for ES6 classes
TypeGraphQL - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
marshal.ts - A new full-featured and high-performance TypeScript framework