Skip to content

Commit 04be890

Browse files
committed
make types more precise
1 parent b482ec3 commit 04be890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server/socket/component_manager.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { SessionData } from "express-session";
22
import jwt from 'jsonwebtoken';
33
import { WebSocket } from "ws";
44
import { Parts } from "..";
5-
import { LiveViewComponent, LiveViewSocket, PushPatchPathAndParams, StringPropertyValues } from "../component/types";
5+
import { LiveViewComponent, LiveViewSocket, PushPatchPathAndParams } from "../component/types";
66
import { PubSub } from "../pubsub/SingleProcessPubSub";
77
import { deepDiff } from "../templates/diff";
88
import { PhxMessage } from "./message_router";
@@ -232,7 +232,7 @@ export class LiveViewComponentManager {
232232
this.intervals.forEach(clearInterval);
233233
}
234234

235-
private async onPushPatch(patch: { to: { path: string, params: StringPropertyValues<any> } }) {
235+
private async onPushPatch(patch: PushPatchPathAndParams) {
236236
const urlParams = new URLSearchParams(patch.to.params);
237237
const to = `${patch.to.path}?${urlParams}`
238238
const message: PhxOutgoingLivePatchPush = [

0 commit comments

Comments
 (0)