Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
479 B
Text
11 lines
479 B
Text
type UniqueFunc<T> = (entry: T) => unknown;
|
|
/**
|
|
* This is configuration option that decides how to filter for unique values only:
|
|
*
|
|
* - `false` means "no filter"
|
|
* - `true` means "use recharts default filter"
|
|
* - function means "use return of this function as the default key"
|
|
*/
|
|
export type UniqueOption<T> = boolean | UniqueFunc<T>;
|
|
export declare function getUniqPayload<T>(payload: Array<T>, option: UniqueOption<T>, defaultUniqBy: UniqueFunc<T>): Array<T>;
|
|
export {};
|