@tsed/platform-params 8.17.3 → 8.18.1
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Type } from "@tsed/core";
|
|
2
2
|
import { ParamOptions } from "../domain/ParamOptions.js";
|
|
3
3
|
/**
|
|
4
|
-
* QueryParams
|
|
4
|
+
* QueryParams returns the value from [request.query](http://expressjs.com/en/4x/api.html#req.query) object.
|
|
5
|
+
* N.B.: If the query parameter is an array, the type of the array elements needs to be specified.
|
|
5
6
|
*
|
|
6
7
|
* #### Example
|
|
7
8
|
*
|
|
@@ -19,6 +20,11 @@ import { ParamOptions } from "../domain/ParamOptions.js";
|
|
|
19
20
|
* }
|
|
20
21
|
*
|
|
21
22
|
* @Get('/')
|
|
23
|
+
* get(@QueryParams('ids', String) ids: string[]) {
|
|
24
|
+
* console.log('IDs', ids);
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* @Get('/')
|
|
22
28
|
* get(@QueryParams('user') user: User) { // with deserialization
|
|
23
29
|
* console.log('user', user);
|
|
24
30
|
* }
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/platform-params",
|
|
3
3
|
"description": "Params module for Ts.ED Framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.18.1",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"tslib": "2.7.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tsed/barrels": "8.
|
|
30
|
-
"@tsed/core": "8.
|
|
31
|
-
"@tsed/di": "8.
|
|
32
|
-
"@tsed/exceptions": "8.
|
|
33
|
-
"@tsed/json-mapper": "8.
|
|
34
|
-
"@tsed/schema": "8.
|
|
35
|
-
"@tsed/typescript": "8.
|
|
29
|
+
"@tsed/barrels": "8.18.1",
|
|
30
|
+
"@tsed/core": "8.18.1",
|
|
31
|
+
"@tsed/di": "8.18.1",
|
|
32
|
+
"@tsed/exceptions": "8.18.1",
|
|
33
|
+
"@tsed/json-mapper": "8.18.1",
|
|
34
|
+
"@tsed/schema": "8.18.1",
|
|
35
|
+
"@tsed/typescript": "8.18.1",
|
|
36
36
|
"eslint": "9.12.0",
|
|
37
37
|
"typescript": "5.4.5",
|
|
38
38
|
"vitest": "3.2.4"
|