UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

14 lines (11 loc) 355 B
import type { FieldState } from "./types" import type { DateField } from "./date" /** * A timestamp field. * * @typeParam State - State of the field which determines its shape. */ export type TimestampField<State extends FieldState = FieldState> = State extends "empty" ? null : `${DateField<"filled">}T${number}:${number}:${number}+${number}`