Skip to content

Commit 9aa80dd

Browse files
authored
fix: type spelling of 'santize' to 'sanitize' (#611)
1 parent b8d1f8f commit 9aa80dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/patterns/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ import { Elysia, t } from 'elysia'
216216
new Elysia({ prefix: '/v1' }).get('/name', 'elysia') // Path is /v1/name
217217
```
218218

219-
## santize
219+
## sanitize
220220

221221
A function or an array of function that calls and intercepts on every `t.String` while validation.
222222

@@ -226,7 +226,7 @@ Allowing us to read and transform a string into a new value.
226226
import { Elysia, t } from 'elysia'
227227

228228
new Elysia({
229-
santize: (value) => Bun.escapeHTML(value)
229+
sanitize: (value) => Bun.escapeHTML(value)
230230
})
231231
```
232232

0 commit comments

Comments
 (0)