Skip to content

Commit 38ab866

Browse files
authored
🔧 fix: missing isHtml import in life cycle (#228)
1 parent 441cd08 commit 38ab866

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎docs/life-cycle/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ To use a local hook, you can inline hook into a route handler:
7373

7474
```typescript
7575
import { Elysia } from 'elysia'
76+
import { isHtml } from '@elysiajs/html'
7677

7778
new Elysia()
7879
.get('/', () => '<h1>Hello World</h1>', {
@@ -93,6 +94,7 @@ To add a global hook, you can use `.on` followed by a life cycle event in camelC
9394

9495
```typescript
9596
import { Elysia } from 'elysia'
97+
import { isHtml } from '@elysiajs/html'
9698

9799
new Elysia()
98100
.get('/none', () => '<h1>Hello World</h1>')

0 commit comments

Comments
 (0)