@mxpicture/gcp-functions-frontend 0.1.49 → 0.1.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IFrontendFunction } from "../function/IFrontendFunction.js";
|
|
2
|
-
export declare class IFrontendApi<FUNC extends IFrontendFunction> {
|
|
2
|
+
export declare abstract class IFrontendApi<FUNC extends IFrontendFunction> {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
protected _func?: FUNC;
|
|
5
|
-
|
|
5
|
+
constructor(name: string);
|
|
6
6
|
useFunc(func: FUNC): void;
|
|
7
7
|
protected func(): FUNC;
|
|
8
8
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { DocumentData, FunctionRequest, FunctionResponse } from "@mxpicture/gcp-functions-common/types";
|
|
2
2
|
import { HttpsCallable } from "firebase/functions";
|
|
3
|
-
export declare class IFrontendFunction {
|
|
3
|
+
export declare abstract class IFrontendFunction {
|
|
4
4
|
readonly name: string;
|
|
5
5
|
protected readonly routes: string[];
|
|
6
6
|
protected _func?: HttpsCallable<FunctionRequest<any>, Promise<FunctionResponse<any>>, unknown>;
|
|
7
|
-
|
|
7
|
+
constructor(name: string, routes: string[]);
|
|
8
8
|
outgress<REQ, RES extends DocumentData>(request: FunctionRequest<REQ>): Promise<FunctionResponse<RES>>;
|
|
9
9
|
protected func(): HttpsCallable<FunctionRequest<any>, Promise<FunctionResponse<any>>, unknown>;
|
|
10
10
|
}
|