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 b7dce2d233
commit 273e4f8e3d

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_');
}