@espresso-lab/mantine-data-table 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Hooks/useApi.d.ts +1 -1
- package/dist/index.es.js +1457 -1452
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +12 -12
package/dist/Hooks/useApi.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ export declare function deleteOne(path: string, id: string | number): Promise<vo
|
|
|
111
111
|
export declare function createOne<C, T extends BaseEntity>(path: string, item: C): Promise<T>;
|
|
112
112
|
export declare function api<R, U>(method: "GET" | "POST" | "PUT" | "DELETE", path: string, payload?: U): Promise<R>;
|
|
113
113
|
export declare function updateOne<T extends BaseEntity>(path: string, item: AtLeast<T, "id">): Promise<T>;
|
|
114
|
-
export declare function useGetOne<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>, id?: string | number): import('@tanstack/react-query').UseQueryResult<T
|
|
114
|
+
export declare function useGetOne<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>, id?: string | number): import('@tanstack/react-query').UseQueryResult<import('@tanstack/query-core').NoInfer<T>, Error>;
|
|
115
115
|
export declare function useGetAll<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>): import('@tanstack/react-query').UseQueryResult<T[], Error>;
|
|
116
116
|
export declare function useAddOne<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>): import('@tanstack/react-query').UseMutationResult<T, Error, Omit<T, "id">, unknown>;
|
|
117
117
|
export declare function useUpdateOne<T extends BaseEntity>(apiPath: string, queryKey: Array<string | number>): import('@tanstack/react-query').UseMutationResult<T, Error, AtLeast<T, "id">, unknown>;
|