Skip to content

trackkit / dispatcher/types / NetworkItem

Type Alias: NetworkItem

NetworkItem = object

Defined in: dispatcher/types.ts:141

Shape for direct network work items produced by providers/adapters. These are "fire this HTTP request" items – NOT the facade "pageview/track" closures.

Properties

id

id: string

Defined in: dispatcher/types.ts:142


type

type: "track" | "pageview" | "identify"

Defined in: dispatcher/types.ts:143


url

url: string

Defined in: dispatcher/types.ts:144


body

body: unknown

Defined in: dispatcher/types.ts:145


init?

optional init: RequestInit

Defined in: dispatcher/types.ts:146


size?

optional size: number

Defined in: dispatcher/types.ts:151

Optional estimate (bytes) used by byte-based batching. If omitted, we estimate from JSON length of the body (best-effort).