Skip to content

Commit 16e7b2b

Browse files
authored
Remove manifest types from API. (#1259)
1 parent 9941668 commit 16e7b2b

File tree

5 files changed

+8
-18
lines changed

5 files changed

+8
-18
lines changed

src/params/types.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -426,17 +426,3 @@ export class BooleanParam extends Param<boolean> {
426426
return new TernaryExpression(this, ifTrue, ifFalse);
427427
}
428428
}
429-
430-
/** @hidden */
431-
export class ListParam extends Param<string[]> {
432-
static type: ParamValueType = "list";
433-
434-
/** @internal */
435-
runtimeValue(): string[] {
436-
throw new Error("Not implemented");
437-
}
438-
439-
toSpec(): WireParamSpec<string[]> {
440-
throw new Error("Not implemented");
441-
}
442-
}

src/runtime/manifest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import { WireParamSpec } from "../params/types";
2626

2727
/**
2828
* An definition of a function as appears in the Manifest.
29+
*
30+
* @internal
2931
*/
3032
export interface ManifestEndpoint {
3133
entryPoint?: string;
@@ -100,13 +102,15 @@ export interface ManifestEndpoint {
100102
};
101103
}
102104

105+
/** @internal */
103106
export interface ManifestRequiredAPI {
104107
api: string;
105108
reason: string;
106109
}
107110

108111
/**
109112
* An definition of a function deployment as appears in the Manifest.
113+
* @internal
110114
*/
111115
export interface ManifestStack {
112116
specVersion: "v1alpha1";

src/v1/providers/tasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ export interface TaskQueueOptions {
6565
export interface TaskQueueFunction {
6666
(req: Request, res: express.Response): Promise<void>;
6767

68-
/** @alpha */
68+
/** @internal */
6969
__endpoint: ManifestEndpoint;
7070

71-
/** @alpha */
71+
/** @internal */
7272
__requiredAPIs?: ManifestRequiredAPI[];
7373

7474
/**

src/v2/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface CloudEvent<T> {
7070
export interface CloudFunction<EventType extends CloudEvent<unknown>> {
7171
(raw: CloudEvent<unknown>): any | Promise<any>;
7272

73-
/** @alpha */
73+
/** @internal */
7474
__endpoint: ManifestEndpoint;
7575

7676
/**

src/v2/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export type HttpsFunction = ((
173173
/** An Express response object, for this function to respond to callers. */
174174
res: express.Response
175175
) => void | Promise<void>) & {
176-
/** @alpha */
176+
/** @internal */
177177
__endpoint: ManifestEndpoint;
178178
};
179179

0 commit comments

Comments
 (0)