Resolve Geometry type as JS object (#11945)

This commit is contained in:
Håvard Vidme
2022-03-04 17:20:25 +01:00
committed by GitHub
parent 7d372c7aee
commit ef956e88a1

View File

@@ -10,6 +10,6 @@ export function getJSType(field: Field): string {
if (['string', 'text', 'uuid', 'hash'].includes(field.type)) return 'string';
if (['boolean'].includes(field.type)) return 'boolean';
if (['time', 'timestamp', 'date', 'dateTime'].includes(field.type)) return 'string';
if (['json', 'csv'].includes(field.type)) return 'object';
if (['json', 'csv', 'geometry'].includes(field.type)) return 'object';
return 'undefined';
}