Skip to content

Commit a51c221

Browse files
authored
Merge branch 'main' into fix-typos-and-grammar-landing
2 parents 4625c3b + 621e187 commit a51c221

File tree

12 files changed

+55
-59
lines changed

12 files changed

+55
-59
lines changed

components/landing/components/simple.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
everyone
2727
</p>
2828
<p class="text-xl text-gray-400 w-full max-w-lg">
29-
From built-in strict-type validaiton to unified types
29+
From built-in strict-type validaiton to a unified type
3030
system, and documentation generation, making an ideal
31-
framework for building server with TypeScript.
31+
framework for building servers with TypeScript.
3232
</p>
3333
</div>
3434
</section>

components/midori/community.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</h2>
1717
</header>
1818
<p class="text-xl text-gray-400 w-full max-w-lg mb-4">
19-
Elysia is one of the biggest community base for Bun first web framework.
19+
Elysia is one of the biggest communities for Bun first web frameworks.
2020
</p>
2121
<p class="text-xl text-gray-400 w-full max-w-lg">
2222
You can ask your questions / propose a new feature / file a bug with our community and mainters.

components/midori/just-return.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ new Elysia()
2929
<p
3030
class="text-xl leading-normal text-gray-400 w-full max-w-lg mb-4"
3131
>
32-
No need for additional method, just return a value to send data
33-
back to client
32+
No need for an additional method, just return the value to send data
33+
back to the client.
3434
</p>
3535
<p
3636
class="text-xl leading-normal text-gray-400 w-full max-w-lg mb-4"

components/midori/openapi.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ new Elysia()
3737
class="text-xl leading-normal text-gray-400 w-full max-w-lg mb-4"
3838
>
3939
Thanks to OpenAPI compliance, Elysia can generate Swagger in one
40-
line with Swagger plugin
40+
line with the Swagger plugin.
4141
</p>
4242
</header>
4343
</article>

components/midori/plugins.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ onMounted(() => {
6565
</h2>
6666
</header>
6767
<p class="text-xl text-gray-400 w-full max-w-lg mb-4">
68-
Being one of the most popular choice for Bun web framework,
68+
Being one of the most popular choices for a Bun web framework,
6969
likely there is a plugin for what you want.
7070
</p>
7171
<p class="text-xl text-gray-400 w-full max-w-lg">
72-
If there's no plugin you need, it's easy to create one and share
73-
with community.
72+
If the plugin you need is not there, it's easy to create one and share
73+
it with the community.
7474
</p>
7575
<div class="mt-8">
7676
<a

components/midori/simple.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
everyone
3232
</p>
3333
<p class="text-xl text-gray-400 w-full max-w-lg">
34-
From built-in strict-type validaiton to unified types
34+
From built-in strict-type validaiton to a unified type
3535
system, and documentation generation, making an ideal
36-
framework for building server with TypeScript.
36+
framework for building servers with TypeScript.
3737
</p>
3838
</div>
3939
</section>

docs/.vitepress/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export default defineConfig({
128128
text: 'Derive',
129129
link: '/concept/derive'
130130
},
131+
{
132+
text: 'Plugin',
133+
link: '/concept/plugin'
134+
},
131135
{
132136
text: 'Group',
133137
link: '/concept/group'
@@ -152,10 +156,6 @@ export default defineConfig({
152156
text: 'Config',
153157
link: '/concept/config'
154158
},
155-
{
156-
text: 'Plugin',
157-
link: '/concept/plugin'
158-
},
159159
{
160160
text: 'Explicit Body',
161161
link: '/concept/explicit-body'

docs/concept/group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You can separate group into an instance and register the group as plugin for cod
5050
import { Elysia } from 'elysia'
5151

5252
const users = new Elysia({ prefix: '/user' })
53-
.post('/sign-in, signIn)
53+
.post('/sign-in', signIn)
5454
.post('/sign-up', signUp)
5555
.post('/profile', getProfile)
5656

docs/concept/plugin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ You can customize plugin by creating function to return callback which accepts E
7474
```typescript
7575
import { Elysia } from 'elysia'
7676

77-
const plugin = ({
77+
const plugin = <const Prefix>({
7878
prefix = '/v1'
79-
}) => (app: Elysia) => app
79+
}: { prefix: Prefix }) => new Elysia({ prefix })
8080
.get(`/${prefix}/hi`, () => 'Hi')
8181

8282
const app = new Elysia()

docs/concept/schema.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface Body {
5959
This means that you will get strict type defining once from a schema and get inferred type to TypeScript without needing to write a single TypeScript.
6060

6161
## Global and scope
62-
The global schema will define all types of a handler in the scope.
62+
The global schema will define all types within the scope of a handler.
6363

6464
```typescript
6565
app.guard({
@@ -73,7 +73,7 @@ app.guard({
7373

7474
The global type will be overwritten by the nearest schema to the handler.
7575

76-
In another word, inherits schema is rewritten by the inner scope.
76+
In other words, the inherited schema is rewritten within the inner scope.
7777
```typescript
7878
app.guard({
7979
response: t.String()
@@ -87,7 +87,7 @@ app.guard({
8787
)
8888
```
8989

90-
`group` and `guard` will define the scope limit, so the type will not get out of the scope handler.
90+
`group` and `guard` will define the scope limits, so the type will not get out of the scope handler.
9191

9292
## Multiple Status Response
9393
By default `schema.response` can accept either a schema definition or a map or stringified status code with schema.
@@ -110,9 +110,9 @@ new Elysia()
110110
```
111111

112112
## Reference Models
113-
Sometime you might find yourself re-use the same type multiple time.
113+
Sometimes you might find yourself reusing the same type multiple times.
114114

115-
Using [reference models](/patterns/reference-models), you can named your model and use it by referencing the name:
115+
Using [reference models](/patterns/reference-models), you can name your model and use it by referencing the name:
116116
```typescript
117117
// auth.model.ts
118118
import { Elysia } from 'elysia'
@@ -135,4 +135,4 @@ const app = new Elysia()
135135
})
136136
```
137137

138-
For more explaination, see [Reference Models](/patterns/reference-models).
138+
For more explanation, see [Reference Models](/patterns/reference-models).

0 commit comments

Comments
 (0)