Skip to content

Interface: NetCallOptions<T>

types/NetCallOptions.NetCallOptions

NetCallOptions are the arguments for the netCall function.

Type parameters

Name Description
T The type of the data being sent as JSON (or otherwise structured) data.

Properties

data

Optional data: T

JSON/structured data to send to the endpoint. May be undefined if this is a get request.

Defined in

src/base/types/NetCallOptions.ts:14


method

Optional method: Method

HTTP Verb, like get, post, patch, put, or delete.

Defined in

src/base/types/NetCallOptions.ts:12


params

Optional params: QueryParams

Query parameters. Will construct a query string based on stringifying the contents of this object.

Defined in

src/base/types/NetCallOptions.ts:16


signal

signal: AbortSignal

AbortSignal, now standard in all browsers that matter. Used to abort a call from outside.

Defined in

src/base/types/NetCallOptions.ts:18


url

url: string

Defined in

src/base/types/NetCallOptions.ts:10