Skip to content

Commit b6c1fc1

Browse files
committed
small jsdocs tweak
1 parent f6f2b77 commit b6c1fc1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/trigger-sdk/src/v3/streams.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ export type { InferStreamType, InferInputStreamType };
686686
* id: "my-task",
687687
* run: async (payload) => {
688688
* // Wait for the next approval
689-
* const data = await approval.once();
689+
* const data = await approval.once().unwrap();
690690
* console.log(data.approved, data.reviewer);
691691
* },
692692
* });
@@ -783,12 +783,12 @@ function input<TData>(opts: { id: string }): RealtimeDefinedInputStream<TData> {
783783
const data =
784784
waitResult.output !== undefined
785785
? await conditionallyImportAndParsePacket(
786-
{
787-
data: waitResult.output,
788-
dataType: waitResult.outputType ?? "application/json",
789-
},
790-
apiClient
791-
)
786+
{
787+
data: waitResult.output,
788+
dataType: waitResult.outputType ?? "application/json",
789+
},
790+
apiClient
791+
)
792792
: undefined;
793793

794794
if (waitResult.ok) {

0 commit comments

Comments
 (0)