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:
Nathan Oertel
2019-12-26 13:38:32 -06:00
committed by Andrew Branch
parent d214b81c83
commit 1fda2b2e92
2 changed files with 7 additions and 7 deletions
@@ -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);
+3 -3
View File
@@ -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;