@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
12 lines (11 loc) • 304 B
TypeScript
import type { Ref } from "../types/api/ref";
/**
* Returns the master ref from a list of given refs.
*
* @param refs - A list of refs to search.
*
* @returns The master ref from the list.
*
* @throws If a matching ref cannot be found.
*/
export declare const findMasterRef: (refs: Ref[]) => Ref;