@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
13 lines (12 loc) • 388 B
TypeScript
import type { EmptyObjectField, FieldState } from "./types";
/**
* A geopoint field.
*
* @typeParam State - State of the field which determines its shape.
*
* @see More details: {@link https://prismic.io/docs/geopoint}
*/
export type GeoPointField<State extends FieldState = FieldState> = State extends "empty" ? EmptyObjectField : {
latitude: number;
longitude: number;
};