Skip to content

Commit 71cc8e0

Browse files
committed
declare types for BaseLiveViewComponent on mount params and session
1 parent 94949aa commit 71cc8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export abstract class BaseLiveViewComponent<T, P> implements LiveViewComponent<T
5454

5555
private componentManager: LiveViewComponentManager;
5656

57-
abstract mount(params: any, session: any, socket: LiveViewSocket<T>): T;
57+
abstract mount(params: LiveViewMountParams, session: Partial<SessionData>, socket: LiveViewSocket<T>): T;
5858
abstract render(context: T): LiveViewTemplate;
5959

6060
handleParams(params: StringPropertyValues<P>, url: string, socket: LiveViewSocket<T>): T {

0 commit comments

Comments
 (0)