@daveyplate/supabase-swr-entities
Version:
An entity management library for Supabase and SWR
16 lines (15 loc) • 591 B
TypeScript
/**
* Get the locale value from the internationalized data.
*/
export declare function getLocaleValue(obj: any, locale: string, defaultLocale?: string | null): string;
export declare function useClearCache(): {
clearCache: () => void;
};
/**
* Generate API path from table, id & params.
*/
export declare function apiPath(table?: string | null, id?: string | null, params?: Record<string, string> | null): string | null;
/**
* process.env.NEXT_PUBLIC_IS_EXPORT == '1' or 'true' || process.env.NEXT_PUBLIC_IS_MOBILE == '1' or 'true'
*/
export declare const isExport: () => boolean;