Skip to content

Commit

Permalink
Fix primefaces#4676: Passthrough allow data-testid or any arbitrary…
Browse files Browse the repository at this point in the history
… attribute (primefaces#4677)
  • Loading branch information
melloware committed Jul 21, 2023
1 parent bf88d40 commit 8344c70
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/lib/utils/utils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,11 @@ export type IconType<ComponentProps, AdditionalProps = NonNullable<unknown>> = R

export type TemplateType<ComponentProps> = React.ReactNode | ((props: ComponentProps) => React.ReactNode);

export type PassThroughType<T, O> = T | ((options?: O) => T | void) | null | undefined;
export type PassThroughType<T, O> =
| T
| ((options?: O) => T | void)
| null
| undefined
| {
[key: string]: any;
};

0 comments on commit 8344c70

Please sign in to comment.