Skip to content

Commit 5e095b0

Browse files
authored
Update README.md
1 parent 430102e commit 5e095b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ which automatically generates OpenAPI schemas by sending probe requests to your
2828
and analyzing the responses. The workflow is:
2929

3030
1. **Discovery Phase** (Build time): You define which endpoints to probe with sample parameters
31-
2. **Type Generation** (Build time): autodisco infers the API structure and generates TypeScript types using [openapi-typescript](https://github.com/openapi-ts/openapi-typescript)
31+
2. **Type Generation** (Build time): [autodisco](https://github.com/freb97/autodisco) infers the API structure and generates TypeScript types using [openapi-typescript](https://github.com/openapi-ts/openapi-typescript)
3232
3. **Type-Safe Client** (Runtime): A fetch client powered by [openapi-fetch](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch) provides fully-typed methods for your API
3333

3434
This gives you autocompletion, type checking, and IntelliSense for legacy APIs without manual type definitions.
@@ -91,7 +91,7 @@ export default defineNuxtConfig({
9191
},
9292
},
9393

94-
// Whether the generated client should only be available server-side
94+
// Whether the generated client should only be available server-side (nitro)
9595
private: false,
9696
},
9797
})
@@ -132,7 +132,7 @@ const { data: newTodo } = await dfetch.POST('/todos', {
132132
type Todos = DfetchComponents['schemas']['Todos']
133133
type Body = DfetchPaths['/todos']['post']['requestBody']
134134
135-
console.log(todo.title) // Fully typed!
135+
console.log(todo.title) // Fully typed!
136136
</script>
137137
```
138138

0 commit comments

Comments
 (0)