UNPKG

@egodigital/nef

Version:

Managed Extensibility Framework like library written for Node.js

59 lines (58 loc) 1.92 kB
/** * This file is part of the @egodigital/nef distribution. * Copyright (c) e.GO Digital GmbH, Aachen, Germany (https://www.e-go-digital.com/) * * @egodigital/nef is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, version 3. * * @egodigital/nef is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /// <reference types="node" /> import { CatalogBase } from './CatalogBase'; /** * Options for 'ApplicationCatalog' class. */ export interface ApplicationCatalogOptions { /** * The custom (application) process. */ application?: NodeJS.Process; /** * One or more patterns of file to exclude. */ exclude?: string | string[]; /** * One or more patterns. Default: *.js or *.ts */ patterns?: string | string[]; } /** * A catalog based on one or more JavaScript modules of the current application (e.g.). */ export declare class ApplicationCatalog extends CatalogBase { readonly options?: ApplicationCatalogOptions; /** * Initializes a new instance of that class. * * @param {ApplicationCatalogOptions} [options] The custom options. */ constructor(options?: ApplicationCatalogOptions); /** * Gets the underlying application (process), */ get application(): NodeJS.Process; /** @inheritdoc */ getClasses(): Promise<any[]>; /** @inheritdoc */ getClassesSync(): any[]; private getGlobOptions; private getPatterns; private loadClasses; }