Skip to content

Commit

Permalink
sdk: fix StreamService template args
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jul 14, 2024
1 parent 891e979 commit db7351e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/sdk",
"version": "0.3.43",
"version": "0.3.44",
"description": "",
"main": "dist/src/index.js",
"exports": {
Expand Down
4 changes: 2 additions & 2 deletions sdk/types/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/types",
"version": "0.3.41",
"version": "0.3.42",
"description": "",
"main": "dist/index.js",
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/types/scrypted_python/scrypted_sdk/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,7 @@ async def stop(self) -> None:
class StreamService:
"""Generic bidirectional stream connection."""

async def connectStream(self, input: AsyncGenerator[Any, None] = None, options: Any = None) -> AsyncGenerator[Any, None]:
async def connectStream(self, input: AsyncGenerator[Input, None] = None, options: Any = None) -> AsyncGenerator[Output, None]:
pass


Expand Down
4 changes: 2 additions & 2 deletions sdk/types/src/types.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1524,8 +1524,8 @@ export interface VideoFrameGenerator {
/**
* Generic bidirectional stream connection.
*/
export interface StreamService {
connectStream<Input, Output=Input>(input?: AsyncGenerator<Input, void>, options?: any): Promise<AsyncGenerator<Output, void>>;
export interface StreamService<Input, Output=Input> {
connectStream(input?: AsyncGenerator<Input, void>, options?: any): Promise<AsyncGenerator<Output, void>>;
}
/**
* TTY connection offered by a remote device that can be connected to
Expand Down

0 comments on commit db7351e

Please sign in to comment.