> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# PacketArgs

> Arguments of the typed send methods after the definition: the payload, which can be left out when it accepts undefined (a packet without payload is void), then the options.

> **PacketArgs**\<`T`> = `undefined` *extends* `T` ? \[`data?`: `T`, `options?`: [`ChannelOptions`](https://docs.nanoforge.eu/references/engine/3.0.0/network/index/type-aliases/ChannelOptions)] : \[`data`: `T`, `options?`: [`ChannelOptions`](https://docs.nanoforge.eu/references/engine/3.0.0/network/index/type-aliases/ChannelOptions)]

Defined in: [modules/network/src/shared/packet.ts:107](https://github.com/NanoForge-dev/Engine/blob/ed8c7e0b33d17f8343c32659cf63ba4166a4fa53/modules/network/src/shared/packet.ts#L107)

Arguments of the typed send methods after the definition: the payload, which
can be left out when it accepts `undefined` (a packet without payload is
`void`), then the options.

## Type Parameters

### T

`T`

Payload type of the packet.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.