File tree 1 file changed +9
-1
lines changed
packages/parameters/src/ssm
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ class SSMProvider extends BaseProvider {
29
29
this . client = new SSMClient ( config ) ;
30
30
}
31
31
32
+ public async get ( name : string , options ?: SSMGetOptionsInterface | undefined ) : Promise < string | Record < string , unknown > | undefined > {
33
+ return super . get ( name , options ) ;
34
+ }
35
+
36
+ public async getMultiple ( path : string , options ?: SSMGetMultipleOptionsInterface | undefined ) : Promise < undefined | Record < string , unknown > > {
37
+ return super . getMultiple ( path , options ) ;
38
+ }
39
+
32
40
/**
33
41
* Retrieve multiple parameter values by name from SSM or cache.
34
42
*
@@ -211,7 +219,7 @@ class SSMProvider extends BaseProvider {
211
219
if ( ! this . hasKeyExpiredInCache ( cacheKey ) ) {
212
220
// Since we know the key exists in the cache, we can safely use the non-null assertion operator
213
221
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
214
- results . cached [ parameterName ] = this . store . get ( cacheKey ) ! . value ;
222
+ results . cached [ parameterName ] = this . store . get ( cacheKey ) ! . value as Record < string , string | Record < string , unknown > > ;
215
223
} else {
216
224
results . toFetch [ parameterName ] = parameterOptions ;
217
225
}
You can’t perform that action at this time.
0 commit comments