Interface IRequest

interface IRequest {
    del: ((url, args?) => Promise<any>);
    get: ((url, params?, args?) => Promise<any>);
    options: ((url, args?) => Promise<any>);
    patch: ((url, data, args?) => Promise<any>);
    post: ((url, data, args?) => Promise<any>);
    put: ((url, data, args?) => Promise<any>);
}

Properties

del: ((url, args?) => Promise<any>)

Type declaration

    • (url, args?): Promise<any>
    • Parameters

      • url: string
      • Optional args: Partial<Config<unknown>>

      Returns Promise<any>

get: ((url, params?, args?) => Promise<any>)

Type declaration

    • (url, params?, args?): Promise<any>
    • Parameters

      • url: string
      • Optional params: Record<string, any>
      • Optional args: Partial<Config<unknown>>

      Returns Promise<any>

options: ((url, args?) => Promise<any>)

Type declaration

    • (url, args?): Promise<any>
    • Parameters

      • url: string
      • Optional args: Partial<Config<unknown>>

      Returns Promise<any>

patch: ((url, data, args?) => Promise<any>)

Type declaration

    • (url, data, args?): Promise<any>
    • Parameters

      • url: string
      • data: any
      • Optional args: Partial<Config<unknown>>

      Returns Promise<any>

post: ((url, data, args?) => Promise<any>)

Type declaration

    • (url, data, args?): Promise<any>
    • Parameters

      • url: string
      • data: any
      • Optional args: Partial<Config<unknown>>

      Returns Promise<any>

put: ((url, data, args?) => Promise<any>)

Type declaration

    • (url, data, args?): Promise<any>
    • Parameters

      • url: string
      • data: any
      • Optional args: Partial<Config<unknown>>

      Returns Promise<any>