Skip to content

Commit 7f09c2d

Browse files
authored
fix: add type for t macro as function (#821)
1 parent 2d9e124 commit 7f09c2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/macro/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { MessageDescriptor } from "@lingui/core"
33
import type { TransRenderProps } from "@lingui/react"
44

55
export function t(
6-
literals: TemplateStringsArray,
6+
literals: TemplateStringsArray | MessageDescriptor,
77
...placeholders: any[]
88
): string
99

0 commit comments

Comments
 (0)