UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

15 lines (14 loc) 297 B
const getOptionalLinkProperties = (input) => { const res = {}; if ("text" in input) { res.text = input.text; } if ("variant" in input) { res.variant = input.variant; } return res; }; export { getOptionalLinkProperties }; //# sourceMappingURL=getOptionalLinkProperties.js.map