Handle ES _default_ mapping names (#15432)

This commit is contained in:
Christopher Dieringer 2017-12-12 09:04:34 -08:00 committed by Tyler Smalley
parent 95755ef794
commit 65c7baf274

View file

@ -5,5 +5,5 @@
* @return {Array<string>}
*/
export function getTypes(mappings) {
return Object.keys(mappings);
return Object.keys(mappings).filter(type => type !== '_default_');
}