Skip to content

Instantly share code, notes, and snippets.

View brieb's full-sized avatar

Brie brieb

  • San Francisco, CA
View GitHub Profile
import PropTypes from 'prop-types';
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
type Defined<T> = T extends undefined ? never : T;
/**
* Get the type that represents the props with the defaultProps included.
*
* Alternatively, we could have done something like this:
@brieb
brieb / test.py
Created September 22, 2013 18:40
def run():
print "hello, world"