refactor(sync): create AtomMap type

This commit is contained in:
Richard 2025-01-25 16:07:28 -08:00
parent 884e6c0e8c
commit 63388761f8
3 changed files with 11 additions and 2 deletions

View file

@ -1,13 +1,14 @@
local Charm = require(script.Parent.Parent.Charm)
local patch = require(script.Parent.patch)
local types = require(script.Parent.types)
type AtomMap = types.AtomMap
type SyncPayload = types.SyncPayload
type ClientOptions = {
--[=[
The atoms to synchronize with the server.
]=]
atoms: { [string | number]: Charm.Atom<any> },
atoms: AtomMap,
--[=[
Whether to ignore patches sent before the client has been hydrated.
Default is `true`.