-
Notifications
You must be signed in to change notification settings - Fork 343
Description
Documentation Feedback
Path: /examples/express_tutorial/
Helpful: No ❌
Feedback:
running this example exactly as it is shown with deno version 2.6.2 leads to type errors:
$ deno check
Check main.ts
Check main_test.ts
TS7006 [ERROR]: Parameter 'req' implicitly has an 'any' type.
app.get("/", (req, res) => {
~~~
at file:///home/cem/Projects/tutorial-with-express/main.ts:9:15
TS7006 [ERROR]: Parameter 'res' implicitly has an 'any' type.
app.get("/", (req, res) => {
~~~
at file:///home/cem/Projects/tutorial-with-express/main.ts:9:20
TS7006 [ERROR]: Parameter 'req' implicitly has an 'any' type.
app.get("/api", (req, res) => {
~~~
at file:///home/cem/Projects/tutorial-with-express/main.ts:13:18
TS7006 [ERROR]: Parameter 'res' implicitly has an 'any' type.
app.get("/api", (req, res) => {
~~~
at file:///home/cem/Projects/tutorial-with-express/main.ts:13:23
TS7006 [ERROR]: Parameter 'req' implicitly has an 'any' type.
app.get("/api/:dinosaur", (req, res) => {
~~~
at file:///home/cem/Projects/tutorial-with-express/main.ts:17:28
TS7006 [ERROR]: Parameter 'res' implicitly has an 'any' type.
app.get("/api/:dinosaur", (req, res) => {
~~~
at file:///home/cem/Projects/tutorial-with-express/main.ts:17:33
TS2305 [ERROR]: Module '"file:///home/cem/Projects/tutorial-with-express/main.ts"' has no exported member 'add'.
import { add } from "./main.ts";
~~~
at file:///home/cem/Projects/tutorial-with-express/main_test.ts:2:10
Found 7 errors.
error: Type checking failed.
GitHub User: @rebootl
This issue was automatically created from the documentation feedback system.