zeokku / api-handler

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%