Skip to content

Commit 559c65e

Browse files
fix: add explicit return type to TabLoop render method (#6075)
The render() method lacked an explicit return type, causing TypeScript to infer an overly broad type that included bigint in the generated .d.ts file. This caused transpilation errors in React 18 projects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f11433c commit 559c65e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tab_loop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class TabLoop extends Component<TabLoopProps> {
8585
tabChildren && tabChildren.length > 1 && tabChildren[0].focus();
8686
};
8787

88-
render() {
88+
render(): React.ReactNode {
8989
if (!(this.props.enableTabLoop ?? TabLoop.defaultProps.enableTabLoop)) {
9090
return this.props.children;
9191
}

0 commit comments

Comments
 (0)