Skip to content

Commit 5041668

Browse files
committed
refactor: make some client props readonly
1 parent f8d8141 commit 5041668

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ import { APIService, GlobalCacheService } from "./services";
44
import { type ClientEvents, TypedEventEmitter } from "./types";
55

66
export class SquareCloudAPI extends TypedEventEmitter<ClientEvents> {
7-
static apiInfo = {
8-
latestVersion: "v2",
9-
baseUrl: "https://api.squarecloud.app/",
7+
public static apiInfo = {
8+
baseUrl: "https://api.squarecloud.app",
9+
version: "v2",
1010
};
1111

1212
/** The API service */
1313
public readonly api: APIService;
1414

1515
/** The applications module */
16-
public applications = new ApplicationsModule(this);
16+
public readonly applications = new ApplicationsModule(this);
1717
/** The users module */
18-
public users = new UserModule(this);
18+
public readonly users = new UserModule(this);
1919
/** The global cache service */
20-
public cache = new GlobalCacheService();
20+
public readonly cache = new GlobalCacheService();
2121

2222
/**
2323
* Creates an API instance

0 commit comments

Comments
 (0)