Page Contents

Home > @loopback/model-api-builder > ModelApiConfig

ModelApiConfig type

Configuration settings for individual model files. This type describes content of public-models/{model-name}.config.json files.

Signature:

export type ModelApiConfig = {
    model: typeof Model & {
        prototype: Model;
    };
    pattern: string;
    dataSource: string;
    [patternSpecificSetting: string]: unknown;
};