@prismicio/types-internal
Version:
Prismic types for Custom Types and Prismic Data
34 lines (33 loc) • 918 B
TypeScript
import * as t from "io-ts";
import type { LegacyContentCtx, WithTypes } from "../../LegacyContentCtx";
export declare const GeoPointContentType = "GeoPointContent";
export declare const isGeoPointContent: (u: unknown) => u is {
position: {
lat: number;
lng: number;
};
} & {
__TYPE__: "GeoPointContent";
};
export declare const GeoPointLegacy: (ctx: LegacyContentCtx) => t.Type<{
position: {
lat: number;
lng: number;
};
} & {
__TYPE__: "GeoPointContent";
}, WithTypes<{
position: {
lat: number;
lng: number;
};
}>, unknown>;
export declare const GeoPointContent: t.IntersectionC<[t.ExactC<t.TypeC<{
position: t.ExactC<t.TypeC<{
lat: t.NumberC;
lng: t.NumberC;
}>>;
}>>, t.ExactC<t.TypeC<{
__TYPE__: t.LiteralC<"GeoPointContent">;
}>>]>;
export declare type GeoPointContent = t.TypeOf<typeof GeoPointContent>;