UNPKG

@tmlmobilidade/utils

Version:

A collection of utility functions and helpers for the TML Mobilidade Go monorepo, providing common functionality for batching operations, caching, HTTP requests, object manipulation, permissions, and more.

18 lines (17 loc) 473 B
export type WithPagination<T> = T & { pagination: { limit: number; page: number; total: number; }; }; /** * Fetches data from a URL using the SWR fetcher function without authentication. * @param url - The URL to fetch from * @returns Promise resolving to the fetched data * @example * ```ts * const data = await standardSwrFetcher('/api/users/123'); * ``` */ export declare const standardSwrFetcher: <T>(url: string) => Promise<T>;