@nadir2k/google-maps-input
Version:
Sanity plugin providing input handlers for geo-related input types using Google Maps
20 lines (16 loc) • 443 B
text/typescript
import {DiffComponent, DiffComponentOptions, ObjectDiff} from 'sanity'
import {ObjectSchemaType} from 'sanity'
export interface LatLng {
lat: number
lng: number
}
export interface Geopoint {
_type: 'geopoint'
_key?: string
lat: number
lng: number
alt?: number
}
export interface GeopointSchemaType extends ObjectSchemaType {
diffComponent?: DiffComponent<ObjectDiff<Geopoint>> | DiffComponentOptions<ObjectDiff<Geopoint>>
}