Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Feb 1, 2022
1 parent 87561cf commit 5c2f636
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/server/socket/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ export type PhxClickPayload = PhxEventPayload<"click", { value: { value: string
//{"type":"form","event":"update","value":"seats=3&_target=seats","uploads":{}}
export type PhxFormPayload = PhxEventPayload<"form", { value: string }> & PhxEventUploads;



// See https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
// for all the string values for the key that kicked off the event
//{type: "keyup", event: "key_update", value: {key: "ArrowUp"}}
Expand All @@ -86,10 +84,6 @@ export type PhxKeyUpPayload = PhxEventPayload<"keyup", { value: { key: string, v
export type PhxKeyDownPayload = PhxEventPayload<"keydown", { value: { key: string, value?: string } }>;


// export type PhxClickEvent = PhxIncomingMessage<PhxClickPayload>
// export type PhxFormEvent = PhxIncomingMessage<PhxFormPayload>


export const newPhxReply = (from: PhxIncomingMessage<unknown>, payload: any): PhxReply => {
return [
from[0],
Expand Down

0 comments on commit 5c2f636

Please sign in to comment.