Skip to content

Commit

Permalink
rename Dynamics to Diff
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Jan 25, 2022
1 parent 8d83359 commit e507923
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/socket/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ export type PhxHeartbeatIncoming = PhxIncomingMessage<{}>;
export type PhxLivePatchIncoming = PhxIncomingMessage<{ url: string }>;


export type Dynamics = { [key: string]: string | Dynamics }
export type Diff = { [key: string]: string | Diff }

export type RenderedNode = { [key: string]: string | RenderedNode } & { [key in "s"]: readonly string[] }

export interface PhxReplyPayload {
response: {
rendered?: RenderedNode
diff?: Dynamics
diff?: Diff
}
status: "ok"
}

export type PhxReply = PhxOutgoingMessage<PhxReplyPayload>;
export type PhxDiffReply = PhxOutgoingMessage<Dynamics>;
export type PhxDiffReply = PhxOutgoingMessage<Diff>;

export interface PhxEventPayload<Type extends string, Value> {
type: Type,
Expand Down

0 comments on commit e507923

Please sign in to comment.