Skip to content

Commit e28bf4c

Browse files
authored
docs(techniques):cookie-parser import changed
Previous import statement causes error. Wildcard should be removed to use cookie-parser middleware as shown in the document like " app.use(cookieParser()) ".
1 parent 65b5bce commit e28bf4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/cookies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $ npm i -D @types/cookie-parser
1414
Once the installation is complete, apply the `cookie-parser` middleware as global middleware (for example, in your `main.ts` file).
1515

1616
```typescript
17-
import * as cookieParser from 'cookie-parser';
17+
import cookieParser from 'cookie-parser';
1818
// somewhere in your initialization file
1919
app.use(cookieParser());
2020
```

0 commit comments

Comments
 (0)