UNPKG

@studyportals/sp-hs-misc

Version:

Miscellaneous code used in HouseStark's projects

26 lines (25 loc) 727 B
import { SuperAgentRequest } from "superagent"; /** * Provides the necessary functionality to create new SuperAgentRequest instances. * * @deprecated Use @studyportals/mb-platform-http-requests */ interface ISuperAgentRequestFactory { /** * Creates a GET request to the specified path. */ get(path: string): SuperAgentRequest; /** * Creates a POST request to the specified path. */ post(path: string): SuperAgentRequest; /** * Creates a PUT request to the specified path. */ put(path: string): SuperAgentRequest; /** * Creates a DELETE request to the specified path. */ delete(path: string): SuperAgentRequest; } export { ISuperAgentRequestFactory };