Add documentation for getDefaultType and make browser build