@hestjs/core
Version:
HestJS Core Framework - A TypeScript framework built on Hono with dependency injection and decorators
27 lines • 759 B
TypeScript
import 'reflect-metadata';
declare global {
namespace Reflect {
function getMetadata(key: any, target: any, propertyKey?: string | symbol): any;
}
}
/**
* 检查是否为类构造函数
*/
export declare function isConstructor(target: any): target is new (...args: any[]) => any;
/**
* 获取函数参数类型
*/
export declare function getParamTypes(target: any, propertyKey?: string | symbol): any[];
/**
* 获取函数返回类型
*/
export declare function getReturnType(target: any, propertyKey: string | symbol): any;
/**
* 生成唯一标识符
*/
export declare function generateId(): string;
/**
* 深度合并对象
*/
export declare function deepMerge(target: any, source: any): any;
//# sourceMappingURL=helpers.d.ts.map