Skip to content

Commit

Permalink
update naming (#1482)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhlongviolin1 authored Jul 5, 2024
1 parent d11c2c1 commit 5e56e29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/taipy-gui/base/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Socket, io } from "socket.io-client";
import { DataManager, ModuleData } from "./dataManager";
import { initSocket } from "./socket";
import { TaipyWsAdapter, WsAdapter } from "./wsAdapter";
import { WsMessageType } from "./packaging/taipy-gui-base";
import { WsMessageType } from "../../src/context/wsUtils";

export type OnInitHandler = (taipyApp: TaipyApp) => void;
export type OnChangeHandler = (taipyApp: TaipyApp, encodedName: string, value: unknown) => void;
Expand Down Expand Up @@ -96,7 +96,7 @@ export class TaipyApp {
}
set onReload(handler: OnReloadHandler | undefined) {
if (handler !== undefined && handler?.length !== 2) {
throw new Error("_onReload() requires two parameters");
throw new Error("onReload() requires two parameters");
}
this._onReload = handler;
}
Expand All @@ -106,7 +106,7 @@ export class TaipyApp {
}
set onWsStatusUpdate(handler: OnWsStatusUpdate | undefined) {
if (handler !== undefined && handler?.length !== 2) {
throw new Error("_onWsStatusUpdate() requires two parameters");
throw new Error("onWsStatusUpdate() requires two parameters");
}
this._onWsStatusUpdate = handler;
}
Expand Down

0 comments on commit 5e56e29

Please sign in to comment.