i just checked the TS tab on the primereact components showcase needs to be updated with types on the usage of variables.
For example:
https://www.primefaces.org/primereact/s ... /accordion
Code: Select all
export const AccordionDemo = () => {
const [activeIndex, setActiveIndex] = useState(null);
const onClick = (itemIndex) => {
let _activeIndex = activeIndex ? [...activeIndex] : [];
Code: Select all
export const IntegrationWizard = () => {
const [activeIndex, setActiveIndex] = useState<any>(null);
const onClick = (itemIndex: any) => {
let _activeIndex: any[] = activeIndex ? [...activeIndex] : [];
Thanks,
Ricardo