Skip to main content

Types & Interfaces

Complete TypeScript type definitions for kSync library.

Core Types

Event

The fundamental data structure in kSync representing a single event.

EventHandler

Function signature for event handlers.

Materializer

Function that computes state from events.

Configuration Types

KSyncOptions

Configuration options for creating a KSync instance.

Storage Types

StorageAdapter

Interface that all storage adapters must implement.

Storage Options

Configuration for different storage adapters.

Sync Types

SyncClient

Interface for synchronization clients.

WebSocket Sync Options

Git Sync Options

Sync Results

CRDT Types

CRDT Interfaces

Vector Clock

Multi-Store Types

KSyncMultistore

Derived Store

React Hook Types

Hook Return Types

Error Types

KSync Errors

Utility Types

Event Utilities

Query Types

Advanced Types