diff --git a/types/client/Client.d.ts b/types/client/Client.d.ts index ba5eb77c..47a0b6ce 100644 --- a/types/client/Client.d.ts +++ b/types/client/Client.d.ts @@ -74,7 +74,7 @@ declare class Client { /** * @deprecated Use {@link Client#runtime} instead. */ - get target(): any; + get target(): "browser" | "node"; /** * Instance of the {@link client.Socket} class. * diff --git a/types/server/index.d.ts b/types/server/index.d.ts index ef0d5006..c5026a01 100644 --- a/types/server/index.d.ts +++ b/types/server/index.d.ts @@ -1,5 +1,10 @@ export { default as Server } from "./Server.js"; export { default as ServerContext } from "./ServerContext.js"; +/** + * The role of the client in the application. + * + * For browser client, this infomation is used to create the URL endpoint. + */ export type ClientRole = string; export type ClientDescription = { /**