UNPKG

@clayui/shared

Version:

ClayShared component

11 lines (10 loc) 373 B
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ export declare type Item = number | string | Record<string, any>; export declare type Locator = Function | string; export declare function getLocatorValue<T extends Item>({ item, locator, }: { item: T; locator?: Locator; }): string | undefined;