How to use the @abraham/reflection.Reflection function in @abraham/reflection

To help you get started, we’ve selected a few @abraham/reflection examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KiranMantha / plumejs / dist / src / lib / decorators.js View on Github external
const getDeps = (target) => {
    let types = reflection_1.Reflection.getMetadata("design:paramtypes", target) || [];
    let deps = types.map((a) => {
        if (a) {
            if (a.name !== "Object") {
                return a.name;
            }
            else {
                return "props";
            }
        }
        else {
            return "";
        }
    });
    return deps;
};
const depsResolver = (options, target) => {
github KiranMantha / plumejs / dist / src / lib / decorators.js View on Github external
const Input = () => (target, key) => {
    reflection_1.Reflection.defineMetadata(utils_1.INPUT_METADATA_KEY, key, target.constructor);
};
exports.Input = Input;

@abraham/reflection

Lightweight ES Module implementation of reflect-metadata

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis