Type alias Config

Config: {
    errorType: string;
    options: {};
    polyfills: {};
    polyfill(p, doThrow?) => {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
    polyfill(p, doThrow, instance, ...args) => FormData;
    polyfill(p, doThrow?, instance?) => {
        prototype: FormData;
        new (form?, submitter?): FormData;
    };
    polyfill(p, doThrow, instance, ...args) => URL;
    polyfill(p, doThrow?, instance?) => {
        prototype: URL;
        canParse(url, base?) => boolean;
        createObjectURL(obj) => string;
        revokeObjectURL(url) => void;
        new (url, base?): URL;
    };
    polyfill(p, doThrow, instance, ...args) => URLSearchParams;
    polyfill(p, doThrow?, instance?) => {
        prototype: URLSearchParams;
        new (init?): URLSearchParams;
    };
    polyfill(p, doThrow, instance, ...args) => AbortController;
    polyfill(p, doThrow?, instance?) => {
        prototype: AbortController;
        new (): AbortController;
    };
    polyfill(p, doThrow) => Performance;
    polyfill(p, doThrow?, instance?, ...args) => any;
}

Configuration object.

Type declaration

  • errorType: string
  • options: {}
    • polyfills: {}
      • polyfill:function
        • Parameters

          • p: "fetch"
          • Optional doThrow: boolean

          Returns {
              (input, init?): Promise<Response>;
              (input, init?): Promise<Response>;
          }

            • (input, init?): Promise<Response>
            • Parameters

              • input: RequestInfo | URL
              • Optional init: RequestInit

              Returns Promise<Response>

            • (input, init?): Promise<Response>
            • Parameters

              • input: RequestInfo
              • Optional init: RequestInit

              Returns Promise<Response>

        • Parameters

          • p: "FormData"
          • doThrow: boolean
          • instance: true
          • Rest ...args: [form?: HTMLFormElement, submitter?: HTMLElement]

          Returns FormData

        • Parameters

          • p: "FormData"
          • Optional doThrow: boolean
          • Optional instance: false

          Returns {
              prototype: FormData;
              new (form?, submitter?): FormData;
          }

            • new (form?, submitter?): FormData
            • Parameters

              • Optional form: HTMLFormElement
              • Optional submitter: HTMLElement

              Returns FormData

          • prototype: FormData
        • Parameters

          • p: "URL"
          • doThrow: boolean
          • instance: true
          • Rest ...args: [url: string | URL, base?: string | URL]

          Returns URL

        • Parameters

          • p: "URL"
          • Optional doThrow: boolean
          • Optional instance: false

          Returns {
              prototype: URL;
              canParse(url, base?) => boolean;
              createObjectURL(obj) => string;
              revokeObjectURL(url) => void;
              new (url, base?): URL;
          }

            • new (url, base?): URL
            • Parameters

              • url: string | URL
              • Optional base: string | URL

              Returns URL

          • prototype: URL
          • canParse:function
            • Parameters

              • url: string | URL
              • Optional base: string

              Returns boolean

          • createObjectURL:function
            • Parameters

              • obj: Blob | MediaSource

              Returns string

          • revokeObjectURL:function
            • Parameters

              • url: string

              Returns void

        • Parameters

          • p: "URLSearchParams"
          • doThrow: boolean
          • instance: true
          • Rest ...args: [init?: string | Record<string, string> | URLSearchParams | string[][]]

          Returns URLSearchParams

        • Parameters

          • p: "URLSearchParams"
          • Optional doThrow: boolean
          • Optional instance: false

          Returns {
              prototype: URLSearchParams;
              new (init?): URLSearchParams;
          }

            • new (init?): URLSearchParams
            • Parameters

              • Optional init: string | Record<string, string> | URLSearchParams | string[][]

              Returns URLSearchParams

          • prototype: URLSearchParams
        • Parameters

          • p: "AbortController"
          • doThrow: boolean
          • instance: true
          • Rest ...args: []

          Returns AbortController

        • Parameters

          • p: "AbortController"
          • Optional doThrow: boolean
          • Optional instance: false

          Returns {
              prototype: AbortController;
              new (): AbortController;
          }

            • new (): AbortController
            • Returns AbortController

          • prototype: AbortController
        • Parameters

          • p: "performance"
          • doThrow: boolean

          Returns Performance

        • Parameters

          • p: string
          • Optional doThrow: boolean
          • Optional instance: boolean
          • Rest ...args: any[]

          Returns any

      Generated using TypeDoc