Skip to content

Commit 56a04f0

Browse files
committed
🎨 cosm: code style and comment polish
1 parent a8d551a commit 56a04f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/openfunction/function_context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export interface OpenFunctionContext {
1111
*/
1212
version: string;
1313
/**
14-
* The target runtime of the context, only available as "knative" and "async".
14+
* The target runtime of the context.
1515
*/
16-
runtime: RuntimeType[keyof RuntimeType];
16+
runtime: keyof typeof RuntimeType;
1717
/**
1818
* Optional port string of the server.
1919
*/
@@ -49,7 +49,7 @@ export interface OpenFunctionComponent {
4949
/**
5050
* The type of the component.
5151
*/
52-
componentType: `${ComponentType.Binding | ComponentType.PubSub}.${string}`;
52+
componentType: `${ComponentType}.${string}`;
5353
/**
5454
* The uri of the component.
5555
*/

src/openfunction/function_runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export abstract class OpenFunctionRuntime {
4343
}
4444

4545
/**
46-
* The promise that send data to certain ouput binding.
46+
* The promise that send data to certain ouput binding or pubsub topic.
4747
*/
4848
abstract send(data: object, output?: string): Promise<object>;
4949
}

0 commit comments

Comments
 (0)