Skip to content

Commit

Permalink
fix(core): add unexported types (#6070)
Browse files Browse the repository at this point in the history
Co-authored-by: Batuhan Wilhelm <batuhanwilhelm@gmail.com>
  • Loading branch information
FatimaSaleem21 and BatuhanW committed Jun 26, 2024
1 parent a41e2b8 commit 4265ae2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/tough-elephants-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@refinedev/core": patch
---

fix(core): add unexported types in `index.tsx`

The `refinedev/core` package has many unexported types that are not accessible for use outside the package. This change aims to address this limitation by exporting those missing types.

Resolves [#6041](https://github.com/refinedev/refine/issues/6041)
39 changes: 39 additions & 0 deletions packages/core/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,32 @@ export {
AccessControlProvider,
AccessControlProvider as AccessControlBindings,
CanParams,
CanResponse,
CanReturnType,
IAccessControlContext,
IAccessControlContextReturnType,
} from "./contexts/accessControl/types.js";

export {
AuditLogProvider,
IAuditLogContext,
ILog,
ILogData,
LogParams,
} from "./contexts/auditLog/types.js";

export {
AuthActionResponse,
AuthBindings,
AuthProvider,
CheckResponse,
IAuthContext,
IdentityResponse,
ILegacyAuthContext,
LegacyAuthProvider,
OnErrorResponse,
PermissionResponse,
SuccessNotificationResponse,
} from "./contexts/auth/types.js";

export {
Expand Down Expand Up @@ -107,6 +117,20 @@ export {
BaseOption,
IQueryKeys,
Prettify,
Context,
ContextQuery,
DataProviders,
IDataContext,
GraphQLQueryOptions,
Fields,
NestedField,
PrevContext,
PreviousQuery,
QueryBuilderOptions,
QueryResponse,
RefineError,
ValidationErrors,
VariableOptions,
} from "./contexts/data/types.js";

export {
Expand All @@ -123,6 +147,7 @@ export {

export {
ILiveContext,
ILiveModeContextProvider,
LiveEvent,
LiveCommonParams,
LiveManyParams,
Expand All @@ -141,6 +166,7 @@ export {
} from "./contexts/notification/types.js";

export {
DashboardPageProps,
IRefineContext,
IRefineContextOptions,
IRefineContextProvider,
Expand All @@ -158,7 +184,14 @@ export {
IResourceContext,
IResourceItem,
ITreeMenu,
IMenuItem,
ResourceAuditLogPermissions,
ResourceBindings,
RouteableProperties,
ResourceRouteComponent,
ResourceRouteComposition,
ResourceRouteDefinition,
ResourceRoutePath,
} from "./contexts/resource/types.js";

export {
Expand All @@ -184,4 +217,10 @@ export {
RouterProvider as RouterBindings,
} from "./contexts/router/types.js";

export {
ActionTypes,
IUndoableQueue,
IUndoableQueueContext,
} from "./contexts/undoableQueue/types.js";

export { IUnsavedWarnContext } from "./contexts/unsavedWarn/types.js";

0 comments on commit 4265ae2

Please sign in to comment.