Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jul 17, 2024
1 parent 6758057 commit e469a6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/cli/test/__snapshots__/generated.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -659,14 +659,14 @@ export interface GeneratedHooks<Presence, Profile> {
* React tree to provide a Client to all hooks.
*/
Provider: ComponentType<{
value: ClientDescriptor<Schema>;
value: ClientDescriptor<any, any>;
children: ReactNode;
sync?: boolean;
}>;
/**
* Direct access to the React Context, if needed.
*/
Context: Context<ClientDescriptor<Schema>>;
Context: Context<ClientDescriptor<any, any>>;
/** @deprecated use useClient instead */
useStorage: () => Client<Presence, Profile>;
useClient: () => Client<Presence, Profile>;
Expand All @@ -690,6 +690,10 @@ export interface GeneratedHooks<Presence, Profile> {
>(
entity: T,
fieldName: K,
options?: {
/** after this timeout, the field will be considered abandoned by a peer. defaults to 1m */
timeout: number;
},
): {
/* The live value of the field */
value: EntityDestructured<T>[K];
Expand Down

0 comments on commit e469a6b

Please sign in to comment.