UNPKG

dino-express

Version:

DinO enabled REST framework based on express

20 lines (19 loc) 671 B
export interface OperationMetadata { operation: string; fcn: string; } export interface PathMetadata { name: string; handler: string; operations: OperationMetadata[]; } declare class DecoratorMetadataRegistry { private readonly paths; addPath(handler: string, path: string): void; addOperation(handler: string, operation: string, fcn: string): void; getDefinedPaths(): string[]; getDefinedPathMetadata(path: string): PathMetadata | undefined; getDefinedOperationMetadata(path: string, operations: string[]): OperationMetadata | undefined; } export declare const decoratorMetadataRegistry: DecoratorMetadataRegistry; export {};