Skip to content

Commit 1c0fc79

Browse files
fix: fixing TypeScript accessibility issue for custom render function (#1428)
* fix: export DebugFunction interface to resolve accessibility issues * feat: add DebugFunction to exported types from render module
1 parent 144796e commit 1c0fc79

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/pure.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type {
1919
RenderOptions,
2020
RenderResult,
2121
RenderResult as RenderAPI,
22+
DebugFunction,
2223
} from './render';
2324
export type { RenderHookOptions, RenderHookResult } from './renderHook';
2425
export type { Config } from './config';

src/render.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function updateWithAct(
136136
};
137137
}
138138

139-
interface DebugFunction {
139+
export interface DebugFunction {
140140
(options?: DebugOptions | string): void;
141141
shallow: (message?: string) => void;
142142
}

0 commit comments

Comments
 (0)