fix(home): annotate getVisitName as internal utility
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -101,15 +101,6 @@ export type CustomHomepageGridProps = {
|
||||
preventCollision?: boolean;
|
||||
};
|
||||
|
||||
// @public
|
||||
export const getVisitName: ({
|
||||
rootPath,
|
||||
document,
|
||||
}?: {
|
||||
rootPath?: string | undefined;
|
||||
document?: Document | undefined;
|
||||
}) => ({ pathname }: { pathname: string }) => string;
|
||||
|
||||
// @public
|
||||
export const HeaderWorldClock: (props: {
|
||||
clockConfigs: ClockConfig[];
|
||||
|
||||
@@ -52,11 +52,11 @@ const getToEntityRef =
|
||||
};
|
||||
|
||||
/**
|
||||
* @public
|
||||
* @internal
|
||||
* This function returns an implementation of visitName which is responsible
|
||||
* for receiving a pathname and returning a string (name).
|
||||
*/
|
||||
export const getVisitName =
|
||||
const getVisitName =
|
||||
({ rootPath = 'catalog', document = global.document } = {}) =>
|
||||
({ pathname }: { pathname: string }) => {
|
||||
// If it is a catalog entity, get the name from the path
|
||||
|
||||
Reference in New Issue
Block a user