File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -90,24 +90,24 @@ export interface EventStreamSerdeContext {
90
90
/**
91
91
* A function which deserializes binary event stream message into modeled shape.
92
92
*/
93
- export interface EventStreamMarshallerDeserFn {
94
- < T > ( body : any , deserializer : ( input : Record < string , Message > ) => Promise < T > ) : AsyncIterable < T > ;
93
+ export interface EventStreamMarshallerDeserFn < StreamType > {
94
+ < T > ( body : StreamType , deserializer : ( input : Record < string , Message > ) => Promise < T > ) : AsyncIterable < T > ;
95
95
}
96
96
97
97
/**
98
98
* A function that serializes modeled shape into binary stream message.
99
99
*/
100
- export interface EventStreamMarshallerSerFn {
101
- < T > ( input : AsyncIterable < T > , serializer : ( event : T ) => Message ) : any ;
100
+ export interface EventStreamMarshallerSerFn < StreamType > {
101
+ < T > ( input : AsyncIterable < T > , serializer : ( event : T ) => Message ) : StreamType ;
102
102
}
103
103
104
104
/**
105
105
* An interface which provides functions for serializing and deserializing binary event stream
106
106
* to/from corresponsing modeled shape.
107
107
*/
108
- export interface EventStreamMarshaller {
109
- deserialize : EventStreamMarshallerDeserFn ;
110
- serialize : EventStreamMarshallerSerFn ;
108
+ export interface EventStreamMarshaller < StreamType = any > {
109
+ deserialize : EventStreamMarshallerDeserFn < StreamType > ;
110
+ serialize : EventStreamMarshallerSerFn < StreamType > ;
111
111
}
112
112
113
113
export interface EventStreamRequestSigner {
You can’t perform that action at this time.
0 commit comments