TypeScript

Typed API clients (OpenAPI codegen)

Në shqip: Klientët API me tipe

ShpjegimiSQ

Në vend që t'i shkruash me dorë tipet e API-së, mjete si openapi-typescript dhe Orval i gjenerojnë nga skema OpenAPI — kështu frontend-i dhe backend-i s'dalin kurrë jashtë sinkronizimit.

EnglishEN

Instead of hand-writing API types, tools like openapi-typescript and Orval generate them from the OpenAPI schema — so frontend and backend never fall out of sync.

Si ta mendosh

Si të marrësh menynë direkt nga kuzhina, jo ta kopjosh me dorë.

Lexoje në anglisht

Like getting the menu straight from the kitchen instead of copying it by hand.

Shembull kodibash

npx openapi-typescript ./openapi.yaml -o ./src/api-tipet.ts

Terma të lidhur