Skip to content

Commit

Permalink
Optional children for TransProps
Browse files Browse the repository at this point in the history
  • Loading branch information
xcool456 authored Feb 7, 2025
1 parent f668c5c commit 6a2ce61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/macro/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type CommonProps = TransRenderCallbackOrComponent & {

type TransChildren = ReactNode | LabeledExpression<string | number>
type TransProps = {
children: TransChildren | TransChildren[]
children?: TransChildren | TransChildren[]
} & CommonProps

type PluralChoiceProps = {
Expand Down

0 comments on commit 6a2ce61

Please sign in to comment.