Khalid Jebbari
039627c137
Add type to express Request import in controllers.md
...
Hi,
I'm following the official docs to learn Nest.js, and in the `Controllers` docs the snippet introducing `Request object` didn't compile in `app.controllers.ts` when doing `npm run start:dev` with the following error:
```
src/app.controller.ts:15:24 - error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled.
15 test(@Req() request: Request): string {
~~~~~~~
src/app.controller.ts:3:10
3 import { Request } from 'express';
~~~~~~~
'Request' was imported here.
```
Error was fixed when I added `type` to the import.
Using Node.js v24.8.0 and Nest.js 11.0.10, bootstrapped from the official CLI with `nest new <app>`. (`nest -v` => 11.0.10).
2025-10-09 14:12:43 +02:00
Lorenzo Zabot
24d9c2a7ef
docs(controllers): fix typo
2025-05-08 16:21:03 +02:00
Kamil Myśliwiec
d15fb5c2f8
docs: improve wording in components, controllers, and modules
2025-01-23 11:00:33 +01:00
Kamil Myśliwiec
51840e1395
docs: note about express named wildcard parameters
2025-01-22 10:29:05 +01:00
Kamil Myśliwiec
5bc5c4b5da
docs: update to v11
2024-12-12 13:58:18 +01:00
Sjoerd Smink
812eea81c9
Update controllers.md
...
Change Cache-Control header to no-store
2024-11-04 13:25:13 +01:00
Kamil Myśliwiec
94f8cd4f48
feat: several improvements, merge the latest changes
2024-08-09 11:02:53 +02:00
Michael
ad69f4c3ac
Update RxJS Observable URL to newer version
2024-07-05 17:16:48 -04:00
Guilherme Nogueira
c01c4917fb
Update controllers.md
...
Co-authored-by: Micael Levi L. Cavalcante <mllc@icomp.ufam.edu.br >
2023-09-09 14:16:59 -03:00
Guilherme Nogueira
550473d4ad
feat: update redirection docs for pr12350 on nest
2023-09-05 11:24:34 -03:00
Tony133
27ee61f5f4
fix(): update color illustrative images for dark/light
2023-07-12 18:15:45 +02:00
Kamil Myśliwiec
c37e26d22f
chore: drop store links
2023-06-23 12:26:58 +02:00
Kamil Mysliwiec
f714ae057e
Update content/controllers.md
2023-06-23 11:50:56 +02:00
pedroluiznogueira
dd10b34e19
docs(route-wildcards): add warning to route wildcards section
...
- only express has support for wildcards in the middle of routes
- when using fastify an error is thrown
2023-05-27 17:27:31 -03:00
meni181818
0427d3ac5e
nest g controller cats -> nest g controller [name]
2023-04-28 07:39:22 +03:00
Brandon
975eb55876
Update controllers.md (type 'params' as 'any')
...
Without specifying the variable 'params' as type 'any' I received the following error on a fresh project while following the documentation:
```typescript
findOne(@Param() params): string {
```
```
error TS7006: Parameter 'params' implicitly has an 'any' type.
```
2023-04-14 14:56:28 -04:00
Kamil Myśliwiec
c99056f01a
docs: add swc, devtools docs
2023-02-28 10:15:14 +01:00
Firoj Haque
9ae2c4a808
Fix typos in controller.md
2023-02-13 02:08:06 +05:30
Kamil Mysliwiec
e1112938d3
Update content/controllers.md
2023-02-03 13:41:13 +01:00
Tom Gallacher
583d576f9e
docs(controllers): add warning about route parameter ordering
2023-01-31 21:10:48 +00:00
Eddy
9c3436c353
fix grammar mistake
2021-10-06 16:15:13 +02:00
Kamil Mysliwiec
64de3c14de
Update content/controllers.md
2021-09-23 16:09:05 +02:00
Luan Persini
c72f348020
Update controllers.md with whitelist info
...
Add a hint section bellow the DTO description about the whitelist option from the ValidationPipe.
2021-09-22 15:02:11 -03:00
Kamil Myśliwiec
b9537e62b0
chore(): resolve conflicts
2021-07-07 11:53:50 +02:00
Foair
bbf83b4197
Fix inline code spacing
2021-06-04 21:27:39 +08:00
Tony
a8e61522ea
Update content/controllers.md
...
Co-authored-by: Jay McDoniel <jmcdo29@gmail.com >
2021-03-20 19:29:26 +01:00
Tony133
d4d7ecaaf7
chore(controllers): updated decorator redirect
2021-03-20 17:22:15 +01:00
Kamil Myśliwiec
d98fffbd6d
docs(): update docs with v8 relevant features
2021-03-05 14:06:27 +01:00
Kamil Mysliwiec
3433f7c237
Update content/controllers.md
2021-02-24 09:32:33 +01:00
Mick Lawitzke
81e0bfb73e
Update controllers.md
2021-02-22 09:44:06 +01:00
Mick Lawitzke
9bd2385534
Update controllers.md
...
It took me two years to discover the CRUD generator randomly. Should be worth mentioning it's existence on the controller's page imo.
2021-02-19 15:44:59 +01:00
Kamil Myśliwiec
26002a27af
docs(): add docs about cookies
2020-11-19 10:30:02 +01:00
Kamil Myśliwiec
471e34b962
docs(): document passthrough option
2020-11-18 14:31:27 +01:00
Kamil Mysliwiec
0d952a0f80
Update controllers.md
2020-11-18 11:51:15 +01:00
Kamil Mysliwiec
ce12b55502
Update controllers.md
2020-11-18 11:41:53 +01:00
Kamil Mysliwiec
7317d673bf
Update controllers.md
2020-11-18 11:38:55 +01:00
YCaptain
d04d24f241
docs(controller): fix typo in overview part
...
Lack of brackets after `@Get` and `@Post`.
2020-10-31 22:56:01 +08:00
Kamil Mysliwiec
351cbf6449
Merge pull request #1490 from glenwinters/https-links
...
docs: convert external http links to https
2020-10-05 11:23:15 +02:00
Kamil Mysliwiec
17834a5471
Merge pull request #1491 from glenwinters/request-object-decorators
...
docs: add missing request object decorators
2020-10-05 11:22:23 +02:00
Glen Winters
5b63234464
docs: improve http method decorator explanation
2020-10-03 23:51:56 -05:00
Glen Winters
05a0f208a7
docs: add missing request object decorators
2020-10-03 22:34:23 -05:00
Glen Winters
35e968959f
docs: convert external http links to https
2020-10-03 21:58:43 -05:00
Aaron van den Berg
bd8f558cd8
Fixed incorrect JavaScript code examples
2020-06-17 19:51:17 +02:00
Kamil Myśliwiec
3e92cff491
feat(): small improvements, add banners
2020-02-17 15:09:25 +01:00
Kamil Myśliwiec
6cfc1ec2fe
docs(): add more sections (typeorm), add sequelize docs
2020-02-12 14:39:40 +01:00
Kamil Mysliwiec
3348c965b3
Update controllers.md
2020-01-24 18:59:06 +01:00
Kamil Mysliwiec
18fdc3e667
Merge pull request #737 from nonplus/host-routing
...
docs(): sub-domain routing documentation
2020-01-24 16:36:38 +01:00
Kamil Mysliwiec
c31c01d136
Update controllers.md
2020-01-24 16:32:02 +01:00
Svetlana Kolosova
3cbc54a5c3
docs(): add ip route param
2019-10-24 12:05:18 +03:00
Stepan Riha
24460ec704
add Sub-Domain Routing documentation
2019-10-03 11:05:00 -05:00