Forked from http://github.com/component/type