mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix aws-param-store path parameter type (#41247)
* Corrected the type for path lookups to be strings instead of lists of parameter names * Added myself as author * Changed the path type to match the type in the main library
This commit is contained in:
parent
d214b81c83
commit
1fda2b2e92
@ -65,8 +65,8 @@ promiseParamResult = getParameter(psName, options);
|
||||
promiseParamsResult = getParameters(psNames);
|
||||
promiseParamsResult = getParameters(psNames, options);
|
||||
|
||||
promiseParamsByPathResult = getParametersByPath(psNames);
|
||||
promiseParamsByPathResult = getParametersByPath(psNames, options);
|
||||
promiseParamsByPathResult = getParametersByPath(psName);
|
||||
promiseParamsByPathResult = getParametersByPath(psName, options);
|
||||
|
||||
paramResult = getParameterSync(psName);
|
||||
paramResult = getParameterSync(psName, options);
|
||||
@ -74,5 +74,5 @@ paramResult = getParameterSync(psName, options);
|
||||
paramsResult = getParametersSync(psNames);
|
||||
paramsResult = getParametersSync(psNames, options);
|
||||
|
||||
paramsByPathResult = getParametersByPathSync(psNames);
|
||||
paramsByPathResult = getParametersByPathSync(psNames, options);
|
||||
paramsByPathResult = getParametersByPathSync(psName);
|
||||
paramsByPathResult = getParametersByPathSync(psName, options);
|
||||
|
||||
6
types/aws-param-store/index.d.ts
vendored
6
types/aws-param-store/index.d.ts
vendored
@ -1,6 +1,6 @@
|
||||
// Type definitions for aws-param-store 2.1
|
||||
// Project: https://github.com/vandium-io/aws-param-store#readme
|
||||
// Definitions by: Jason Gray <https://github.com/jasonthomasgray>
|
||||
// Definitions by: Jason Gray <https://github.com/jasonthomasgray>, Nathan Oertel <https://github.com/nathanoertel>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
@ -27,12 +27,12 @@ export function getParametersSync(
|
||||
): SSM.Types.GetParametersResult;
|
||||
|
||||
export function getParametersByPath(
|
||||
path: SSM.Types.ParameterNameList,
|
||||
path: SSM.Types.PSParameterName,
|
||||
options?: SSM.Types.ClientConfiguration
|
||||
): Promise<SSM.Types.ParameterList>;
|
||||
|
||||
export function getParametersByPathSync(
|
||||
path: SSM.Types.ParameterNameList,
|
||||
path: SSM.Types.PSParameterName,
|
||||
options?: SSM.Types.ClientConfiguration
|
||||
): SSM.Types.ParameterList;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user