Skip to content

Compact Web API handler concept using JS Proxy and TS declaration files

Notifications You must be signed in to change notification settings

zeokku/api-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The idea is to use nested proxy. So the outer proxy defines interfaces of the API and inner proxy defines methods from a particular interface.

Declaration files are defined to treat root object and interface proxy as namespaces. They are also used to define method's arguments and return types, so methods are essentially async functions

About

Compact Web API handler concept using JS Proxy and TS declaration files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published