TypeScript

Generated types (OpenAPI, GraphQL)

Në shqip: Tipet e gjeneruara

ShpjegimiSQ

Në vend që t'i shkruash me dorë tipet e një API-je, mjetet si openapi-typescript ose GraphQL Code Generator i krijojnë automatikisht nga dokumentacioni i API-së. Po ndryshoi serveri, i rigjeneron dhe sheh menjëherë çfarë prishet.

EnglishEN

Instead of hand-writing an API's types, tools like openapi-typescript or GraphQL Code Generator create them automatically from the API's documentation. If the server changes, you regenerate and instantly see what breaks.

Si ta mendosh

Si ta printosh menynë direkt nga sistemi i kuzhinës, në vend që ta rishkruash me dorë.

Lexoje në anglisht

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

Shembull kodibash

npx openapi-typescript https://api.shembull.com/openapi.json -o api.d.ts

Terma të lidhur