@hapiness/core
Version:
Project to have a HapiJS (https://hapijs.com/) based framework to create easier NodeJS back-end with some awesome features
28 lines (27 loc) • 630 B
TypeScript
import 'reflect-metadata';
/**
* Helper to extract Metadata
* from a decorator
*
* @todo Filter with the right type
* @param {any} type
* @returns any
*/
export declare function extractMetadata(type: any): any;
/**
* Helper to extract Metadata
* with the decorator name provided
*
* @param {any} type
* @param {string} name
*/
export declare function extractMetadataByDecorator<T>(type: any, name: string): T;
/**
* Helper to extract Metadata
* from a decorator
*
* @todo Filter with the right type
* @param {any} decorator
* @returns []
*/
export declare function extractMetadatas(decorator: any): any[];