Documentation
    Preparing search index...
    Importer: (moduleIdentifier: string, options?: ImportCallOptions) => any

    Function type for importing modules in the context of an AdonisJS application. This function is called whenever AdonisJS needs to import a module from a string identifier.

    Type Declaration

      • (moduleIdentifier: string, options?: ImportCallOptions): any
      • Parameters

        • moduleIdentifier: string

          The module identifier or path to import

        • Optionaloptions: ImportCallOptions

          Optional import call options

        Returns any

        The imported module

    const importer: Importer = (id, options) => import(id)