I hereby claim:
- I am rawrmaan on github.
- I am rawrmaan (https://keybase.io/rawrmaan) on keybase.
- I have a public key ASB43P1vRNEzEPNiHRol6GZBda5wqQ9KKpZ8rI5Jwr-BEQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import RestypedRouter from 'restyped-express-async' | |
| import {MyAPI} from './MyAPI' // <- Your API's RESTyped defintion | |
| import * as express from 'express' | |
| const app = express() | |
| const router = RestypedRouter<MyAPI>(app) | |
| // TS compile error if you declare a route that doesn't exist in your API defintion | |
| router.post('/login', async req => { | |
| // Error if you try to access non-existent body properties |
| #!/usr/bin/env bash | |
| ed -s ./node_modules/@types/react-native/index.d.ts <<< $',s/declare global/declare namespace FuckGlobals/g\nw' |