fix: export site public API to be used in the VS Code extension (#21165)

This commit is contained in:
Ehab Younes
2025-12-08 23:02:36 +03:00
committed by GitHub
parent 493f77120c
commit ac1d51aeca
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -2827,7 +2827,8 @@ interface ClientApi extends ApiMethods {
getAxiosInstance: () => AxiosInstance;
}
class Api extends ApiMethods implements ClientApi {
/** @public Exported for use by external consumers (e.g., VS Code extension). */
export class Api extends ApiMethods implements ClientApi {
constructor() {
const scopedAxiosInstance = getConfiguredAxiosInstance();
super(scopedAxiosInstance);
+2 -1
View File
@@ -31,7 +31,8 @@ export const isApiError = (err: unknown): err is ApiError => {
);
};
const isApiErrorResponse = (err: unknown): err is ApiErrorResponse => {
/** @public Exported for use by external consumers (e.g., VS Code extension). */
export const isApiErrorResponse = (err: unknown): err is ApiErrorResponse => {
return (
typeof err === "object" &&
err !== null &&