Skip to content

Commit a450c98

Browse files
committed
docs(techniques): fix import statement for cookie-parser
1 parent a2eff77 commit a450c98

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 cookieParser from 'cookie-parser';
17+
import * as cookieParser from 'cookie-parser';
1818
// somewhere in your initialization file
1919
app.use(cookieParser());
2020
```

0 commit comments

Comments
 (0)