continuing-cyan
continuing-cyan12mo ago

Guys do we have type for dataprovider?

Guys do we have type for dataprovider? If we have, do we also have typings for filter, pagination, sorting properties?
2 Replies
like-gold
like-gold12mo ago
Hello @Onder, You can find types here: https://github.com/refinedev/refine/blob/main/packages/core/src/contexts/data/types.ts and you can import these types like this:
import {
DataProvider,
CrudFilters,
CrudSorting
} from "@refinedev/core";
import {
DataProvider,
CrudFilters,
CrudSorting
} from "@refinedev/core";
xenophobic-harlequin
xenophobic-harlequin12mo ago
thanks!

Did you find this page helpful?