@plone/volto
Version:
Volto
10 lines (9 loc) • 369 B
TypeScript
import type { Content } from '@plone/types';
import type { Location } from 'history';
export declare function RouteCondition(path: string, exact?: boolean): ({ location }: {
location: Location;
}) => boolean;
export declare function ContentTypeCondition(contentType: string[]): ({ content, location }: {
content: Content;
location: Location;
}) => boolean;