In appdir, what should the type of children be?

Current getting an error saying that children is implicitly of type any. What is the recommended type to use for it? Thanks!

// app/layout.tsx
export default function RootLayout({ children }) {
    return (
      <html lang="en">
        <body>{children}</body>
      </html>
    );
  }


binding element 'children' implicitly has an 'any' type.
Solution
Current getting an error saying that children is implicitly of type any. What is the recommended type to use for it? Thanks!

// app/layout.tsx
export default function RootLayout({ children }) {
    return (
      <html lang="en">
        <body>{children}</body>
      </html>
    );
  }


binding element 'children' implicitly has an 'any' type.
Was this page helpful?