UNPKG

562 BTypeScriptView Raw
1import { InspectionOptions } from '@loopback/core';
2import { ModelDefinition } from '../model';
3export declare class ModelMetadataHelper {
4 /**
5 * A utility function to simplify retrieving metadata from a target model and
6 * its properties.
7 * @param target - The class from which to retrieve metadata.
8 * @param options - An options object for the MetadataInspector to customize
9 * the output of the metadata retrieval functions.
10 */
11 static getModelMetadata(target: Function, options?: InspectionOptions): ModelDefinition | {};
12}