Skip to content

Commit

Permalink
fix: wrong typing of Trans macro component prop (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Chu authored Jan 26, 2021
1 parent f73cb8c commit 57482c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/macro/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function defineMessage(descriptor: MessageDescriptor): MessageDescriptor
export type TransProps = {
id?: string
comment?: string
component?: ReactElement<any, any> | null
component?: React.ComponentType<TransRenderProps>
render?: (props: TransRenderProps) => ReactElement<any, any> | null
}

Expand Down

1 comment on commit 57482c0

@vercel
Copy link

@vercel vercel bot commented on 57482c0 Jan 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.