From 57482c0f1ecab7c266628e7c9be2bd10538c7a57 Mon Sep 17 00:00:00 2001 From: Edward Chu Date: Tue, 26 Jan 2021 22:40:17 +0800 Subject: [PATCH] fix: wrong typing of Trans macro component prop (#960) --- packages/macro/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/macro/index.d.ts b/packages/macro/index.d.ts index cb3a6172e..0cf04d4da 100644 --- a/packages/macro/index.d.ts +++ b/packages/macro/index.d.ts @@ -31,7 +31,7 @@ export function defineMessage(descriptor: MessageDescriptor): MessageDescriptor export type TransProps = { id?: string comment?: string - component?: ReactElement | null + component?: React.ComponentType render?: (props: TransRenderProps) => ReactElement | null }