From 0e23dbc31516a8961c1678c268529756c12f445a Mon Sep 17 00:00:00 2001 From: David Matejka Date: Tue, 27 Feb 2024 13:46:00 +0100 Subject: [PATCH] refactor(interface): reexport createErrorHandler from interface --- build/api/interface.api.md | 3 +++ packages/interface/src/index.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/build/api/interface.api.md b/build/api/interface.api.md index b6394adfb..67343cab2 100644 --- a/build/api/interface.api.md +++ b/build/api/interface.api.md @@ -5,6 +5,7 @@ ```ts import { ContemberClientProps } from '@contember/react-client'; +import { createErrorHandler } from '@contember/react-devbar'; import { EntityAccessor } from '@contember/react-binding'; import { Environment } from '@contember/react-binding'; import { ErrorPersistResult } from '@contember/react-binding'; @@ -45,6 +46,8 @@ export interface ClearFieldTriggerProps { field: SugaredRelativeSingleField['field']; } +export { createErrorHandler } + // @public (undocumented) export const DeleteEntityTrigger: ({ immediatePersist, onPersistError, onPersistSuccess, ...props }: DeleteEntityTriggerProps) => JSX_2.Element; diff --git a/packages/interface/src/index.ts b/packages/interface/src/index.ts index 403e07b41..630d8d38d 100644 --- a/packages/interface/src/index.ts +++ b/packages/interface/src/index.ts @@ -3,3 +3,6 @@ export * from './components' export * from '@contember/react-routing' export * from '@contember/react-binding' export * from '@contember/react-identity' +export { + createErrorHandler, +} from '@contember/react-devbar'