Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
raararaara committed Oct 22, 2024
1 parent 0ed6957 commit 8a2eceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class Client {
for (const [k, v] of Object.entries(options.initialRoot!)) {
if (!crdtObject.get(k)) {
// TODO(raararaara): Need a way to accurately infer the type of `k` for indexing.
root[k as keyof T] = v;
(root as Record<string, unknown>)[k] = v;
}
}
});
Expand Down

0 comments on commit 8a2eceb

Please sign in to comment.