import ParameterTypes from "@site/src/components/ParameterTypes"

# LoaderOptions

 **LoaderOptions**: `Object`

## Type Parameters

<ParameterTypes parameters={[
  {
    "name": "TOptions",
    "type": "`object`",
    "description": "",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} />

## Type declaration

<ParameterTypes parameters={[
  {
    "name": "container",
    "type": "[MedusaContainer](../../CommonTypes/types/types.CommonTypes.MedusaContainer.mdx)",
    "description": "",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": [
      {
        "name": "createScope",
        "type": "() => [MedusaContainer](../../CommonTypes/types/types.CommonTypes.MedusaContainer.mdx)",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "registerAdd",
        "type": "`<T>`(`name`: `string`, `registration`: `T`) => [MedusaContainer](../../CommonTypes/types/types.CommonTypes.MedusaContainer.mdx)",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      }
    ]
  },
  {
    "name": "logger",
    "type": "[Logger](../../LoggerTypes/interfaces/types.LoggerTypes.Logger.mdx)",
    "description": "",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": [
      {
        "name": "activity",
        "type": "(`message`: `string`, `config?`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "debug",
        "type": "(`message`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "error",
        "type": "(`messageOrError`: `any`, `error?`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "failure",
        "type": "(`activityId`: `any`, `message`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "info",
        "type": "(`message`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "log",
        "type": "(...`args`: `any`[]) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "panic",
        "type": "(`data`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "progress",
        "type": "(`activityId`: `any`, `message`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "setLogLevel",
        "type": "(`level`: `string`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "shouldLog",
        "type": "(`level`: `string`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "success",
        "type": "(`activityId`: `any`, `message`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "unsetLogLevel",
        "type": "() => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "warn",
        "type": "(`message`: `any`) => `void`",
        "description": "",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      }
    ]
  },
  {
    "name": "options",
    "type": "`TOptions`",
    "description": "",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} />
