@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
13 lines (12 loc) • 590 B
TypeScript
import type { OptionalLinkProperties } from "../types/value/link";
/**
* Returns optional properties only available to link fields. Link fields can
* have the same shape as content relationship and link to media fields,
* requiring special treatment to extract link-specific properties.
*
* @param input - The content relationship or link to media field from which the
* link properties will be extracted.
*
* @returns Optional link properties that `input` might have.
*/
export declare const getOptionalLinkProperties: (input: OptionalLinkProperties) => OptionalLinkProperties;