@creator.co/wapi 1.3.2-alpha → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/wapi",
3
- "version": "1.3.2-alpha",
3
+ "version": "1.3.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -50,7 +50,7 @@ export default class Request<InputType, PathParamsType, QueryParamsType> {
50
50
  * @param {keyof QueryParamsType} paramName - The name of the query parameter to retrieve.
51
51
  * @returns {string | null} The value of the query parameter, or null if it does not exist.
52
52
  */
53
- public getQueryParam(paramName: keyof QueryParamsType): string | null {
53
+ public getQueryParam(paramName: keyof QueryParamsType): QueryParamsType[paramParam] {
54
54
  return Utils.caseInsensitiveObjectForKey(
55
55
  this.requestEvent.queryStringParameters,
56
56
  String(paramName)