@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
9 lines (8 loc) • 351 B
TypeScript
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}`;