interface · Browser and Node

# ContactStore

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

Import:

```ts
import { type ContactStore } from "@toip-tools/mesh-transport";
```

## Declaration

interface:

```ts
interface ContactStore {
  load(): Promise<Contact[]>;
  save(contacts: Contact[]): Promise<void>;
}
```

## Methods

### `load`

Signature:

```ts
load(): Promise<Contact[]>;
```

No parameters.

#### Returns

`Promise<Contact[]>`

### `save`

Signature:

```ts
save(contacts: Contact[]): Promise<void>;
```

#### Parameters

- **`contacts` (required)**: `Contact[]`

#### Returns

`Promise<void>`

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

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/ContactStore/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
