Documentation
    Preparing search index...
    PresetFn: (options: { rcFile: RcFile }) => void

    Type for AdonisRC preset functions. Preset functions are used to apply common configuration patterns to the RcFile configuration object.

    Type Declaration

      • (options: { rcFile: RcFile }): void
      • Parameters

        • options: { rcFile: RcFile }

          Object containing the RcFile to modify

        Returns void

    const webPreset: PresetFn = ({ rcFile }) => {
    rcFile.providers.push(httpProvider)
    rcFile.preloads.push(routesPreload)
    }