Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/Panel: error in TS Source sample #3359

Closed
livioc opened this issue Sep 23, 2022 · 1 comment · Fixed by #3358
Closed

Docs/Panel: error in TS Source sample #3359

livioc opened this issue Sep 23, 2022 · 1 comment · Fixed by #3358
Assignees
Labels
Component: Documentation Issue or pull request is related to Documentation
Milestone

Comments

@livioc
Copy link
Contributor

livioc commented Sep 23, 2022

Describe the bug

In the 'TS Source' sample at https://www.primefaces.org/primereact/panel/ the code
const template = (options) => {

generates the error
TS7006: Parameter 'options' implicitly has an 'any' type.

Reproducer

No response

PrimeReact version

latest

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@livioc livioc added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 23, 2022
@livioc livioc mentioned this issue Sep 23, 2022
@melloware melloware added Component: Documentation Issue or pull request is related to Documentation and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Sep 23, 2022
@melloware melloware added this to the 8.6.1 milestone Sep 23, 2022
@melloware melloware linked a pull request Sep 23, 2022 that will close this issue
@melloware
Copy link
Member

Thanks for this report and fix. We have this larger backlog item to fix all TypeScript examples you will notice most of them are not TypeScript they are just copies of the Hooks examples. :)

#2490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Issue or pull request is related to Documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants