Skip to content

16Yongjin/safe-and-easy-api-client-type

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to define safe and easy-to-use API Client type like Github Octokit

Github Octokit

  • Octokit request() method autocompletes HTTP method, route, path vars, query params and response types.
  • No need to import parameters/response types.

githuboctokit

In this repository

This repo shows you code example for defining an Octokit-style API client using pure Typescript.

apitypes

How to explore the code

  1. Clone this repo.
  2. Check out entity.ts
  3. Check out api.ts
  4. Try manipulating the code on main.ts

You can test the code directly in this TypeScript Playground

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published