ardatan / feTS

🗹 TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience
https://the-guild.dev/openapi/fets
MIT License
617 stars 28 forks source link

Solved typo in inferring types documentation #1785

Closed EricSmekens closed 1 month ago

EricSmekens commented 1 month ago

Description

Documentation error on Client/Inferring types:

https://the-guild.dev/openapi/fets/client/inferring-schema-types

Example:

import type { NormalizeOAS, OASRequestParameters } from 'fets'
import type oas from './openapi'

type AddUserInput = OASRequestParams<NormalizeOAS<typeof oas>, '/user', 'POST'>

Should be:

import type { NormalizeOAS, OASRequestParams} from 'fets'
import type oas from './openapi'

type AddUserInput = OASRequestParams<NormalizeOAS<typeof oas>, '/user', 'POST'>

Related #1784

Type of change

Please delete options that are not relevant.

Checklist:

ardatan commented 1 month ago

Thanks 🙏