function · Browser and Node

# saidify

Fills the version string and SAID fields. `fields` must list every field in order.

`@toip-tools/eventlog` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/eventlog/src/said.ts#L61)

Import:

```ts
import { saidify } from "@toip-tools/eventlog";
```

## Declaration

Signature:

```ts
saidify<T extends Record<string, unknown>>(protocol: Protocol, fields: T, saidFields: ("d" | "i")[]): {
    raw: string;
    body: T;
};
```

### Parameters

- **`protocol` (required)**: `Protocol`
- **`fields` (required)**: `T`
- **`saidFields` (required)**: `("d" | "i")[]`

### Returns

`{ raw: string; body: T; }`

## Returned object

The returned object exposes these properties and methods.

## Properties

- **`raw` (required)**: `string`
- **`body` (required)**: `T`

[Usage guide](https://toip.tools/toolkit/eventlog/#usage) · [Error handling](https://toip.tools/toolkit/eventlog/#errors) · [All exports](https://toip.tools/toolkit/eventlog/api/)

---

This is the Markdown version of https://toip.tools/toolkit/eventlog/api/saidify/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
