Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
network: clarify variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sokolov committed Mar 2, 2021
1 parent c17f52a commit 5579e96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export type Connectivity = "online" | "connecting" | "offline" | "crashed";

export type NetworkAdapter<Domain> = (params: {
onChange: <K extends keyof Domain>(params: {
onChange: <K extends keyof Domain>(details: {
kind: K;
id: string;
revision: string;
Expand All @@ -15,7 +15,7 @@ export type NetworkAdapter<Domain> = (params: {
) => void;
}) => {
getAndObserve: <K extends keyof Domain>(kind: K, id: string) => () => void;
push: <K extends keyof Domain>(params: {
push: <K extends keyof Domain>(details: {
kind: K;
id: string;
lastSeenRevision: string;
Expand Down

0 comments on commit 5579e96

Please sign in to comment.