Skip to content

Commit 444bbc9

Browse files
committed
refactor: aliases
1 parent 316a5c3 commit 444bbc9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: packages/parameters/src/ssm/SSMProvider.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ class SSMProvider extends BaseProvider {
2929
this.client = new SSMClient(config);
3030
}
3131

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+
3240
/**
3341
* Retrieve multiple parameter values by name from SSM or cache.
3442
*
@@ -211,7 +219,7 @@ class SSMProvider extends BaseProvider {
211219
if (!this.hasKeyExpiredInCache(cacheKey)) {
212220
// Since we know the key exists in the cache, we can safely use the non-null assertion operator
213221
// 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>>;
215223
} else {
216224
results.toFetch[parameterName] = parameterOptions;
217225
}

0 commit comments

Comments
 (0)