@@ -190,7 +190,7 @@ class S2Account {
190190 ) ;
191191 }
192192
193- async createBasin ( basin : string , request ?: CreateBasinRequest , opConfig ?: S2OperationConfig ) : Promise < BasinInfo | undefined > {
193+ async createBasin ( basin : string , request ?: CreateBasinRequest , opConfig ?: S2OperationConfig ) : Promise < BasinInfo > {
194194 this . overrideConfig ( opConfig ) ;
195195 const _request : CreateBasinRequestInner = {
196196 basin,
@@ -218,7 +218,7 @@ class S2Account {
218218 return ;
219219 }
220220
221- async reconfigureBasin ( basin : string , config : BasinConfig , opConfig ?: S2OperationConfig ) : Promise < BasinConfig | undefined > {
221+ async reconfigureBasin ( basin : string , config : BasinConfig , opConfig ?: S2OperationConfig ) : Promise < BasinConfig > {
222222 this . overrideConfig ( opConfig ) ;
223223 const _request : ReconfigureBasinRequest = { basin, basinConfig : config } ;
224224 return retryWithExponentialBackoff (
@@ -289,7 +289,7 @@ class S2Basin {
289289 async getStreamConfig (
290290 stream : string ,
291291 opConfig ?: S2OperationConfig
292- ) : Promise < StreamConfig | undefined > {
292+ ) : Promise < StreamConfig > {
293293 this . overrideConfig ( opConfig ) ;
294294 return retryWithExponentialBackoff (
295295 ( ) => this . _basin . getStreamConfig ( { stream } , { serverURL : this . URL } ) ,
@@ -299,7 +299,7 @@ class S2Basin {
299299 ) ;
300300 }
301301
302- async createStream ( stream : string , request ?: CreateStreamRequest , opConfig ?: S2OperationConfig ) : Promise < StreamInfo | undefined > {
302+ async createStream ( stream : string , request ?: CreateStreamRequest , opConfig ?: S2OperationConfig ) : Promise < StreamInfo > {
303303 this . overrideConfig ( opConfig ) ;
304304 const _request : CreateStreamRequestInner = {
305305 stream,
@@ -314,7 +314,7 @@ class S2Basin {
314314 ) ;
315315 }
316316
317- async deleteStream ( stream : string , if_exists ?: boolean , opConfig ?: S2OperationConfig ) : Promise < void | undefined > {
317+ async deleteStream ( stream : string , if_exists ?: boolean , opConfig ?: S2OperationConfig ) : Promise < void > {
318318 this . overrideConfig ( opConfig ) ;
319319 const response = await retryWithExponentialBackoff (
320320 ( ) => basinDeleteStream ( this . _basin , { stream } , { serverURL : this . URL } ) ,
0 commit comments