Skip to content

Commit 6c038be

Browse files
committed
types
1 parent cc8770a commit 6c038be

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
- fix type for ReactNode children
11+
812
## [0.2.4] - 2023-11-03
913

1014
- fix crypto is undefined bug

example/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const apiKey = process.env.NEXT_PUBLIC_BASELIME_KEY;
1414
export default function RootLayout({
1515
children,
1616
}: {
17-
children: any
17+
children: React.ReactNode
1818
}) {
1919
return (
2020
<html lang="en">

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface BaselimeRumProps {
2525
pageLoadId?: string,
2626
enableLocal?: boolean,
2727
enableWebVitals?: boolean
28-
children: ReactElement<any, string | JSXElementConstructor<any>>
28+
children: React.ReactNode
2929
}
3030
export function BaselimeRum(props: BaselimeRumProps) {
3131

0 commit comments

Comments
 (0)