Skip to content

Commit 3fe0933

Browse files
authored
Merge pull request #95 from kokamkarsahil/import-fix
🔧 fix: invaild imports
2 parents 12edee3 + 08ff9ac commit 3fe0933

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/patterns/file-upload.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ head:
1818
Elysia handles attachment of `multipart/form-data` to `Context.body` by default.
1919

2020
```typescript
21-
import { Elysia, t } from '../src'
21+
import { Elysia, t } from 'elysia'
2222

2323
const app = new Elysia()
2424
.post('/single', ({ body: { file } }) => file, {
@@ -35,7 +35,7 @@ You can use `t.File`, and `t.Files` to strictly validate files:
3535
- `t.Files`: validate multiple files (array) as `Blob[]`
3636

3737
```typescript
38-
import { Elysia, t } from '../src'
38+
import { Elysia, t } from 'elysia'
3939

4040
const app = new Elysia()
4141
.post(

docs/patterns/lazy-loading-module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Using module lazy-loading is recommended when the module is computationally heav
8181
In a test environment, you can use `await app.modules` to wait for deferred and lazy-loading modules.
8282

8383
```typescript
84-
import { Elysia } from '../src'
84+
import { Elysia } from 'elysia'
8585

8686
import { describe, expect, it } from 'bun:test'
8787

0 commit comments

Comments
 (0)