Skip to content

Instantly share code, notes, and snippets.

View rawrmaan's full-sized avatar

Arman Dezfuli-Arjomandi rawrmaan

View GitHub Profile
@rawrmaan
rawrmaan / keybase.md
Created January 21, 2020 18:18
Keybase Proof

Keybase proof

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:

@rawrmaan
rawrmaan / server.ts
Last active December 14, 2017 22:14
RESTyped route defintion
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
@rawrmaan
rawrmaan / killglobals.sh
Created April 19, 2017 21:19
Kill React Native typings globals so we can use node globals too
#!/usr/bin/env bash
ed -s ./node_modules/@types/react-native/index.d.ts <<< $',s/declare global/declare namespace FuckGlobals/g\nw'