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.
The module identifier or path to import
Optional
Optional import call options
The imported module
const importer: Importer = (id, options) => import(id) Copy
const importer: Importer = (id, options) => import(id)
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.