Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript issue when using parameters #188

Open
daankennes opened this issue Aug 23, 2024 · 1 comment
Open

TypeScript issue when using parameters #188

daankennes opened this issue Aug 23, 2024 · 1 comment

Comments

@daankennes
Copy link

Hi,

Thank you for your work on this library.

I run into a TypeScript problem when using parameters. For example this line

<p>{$t('common.welcomeTo_0', { applicationName: 'My application' })}</p>

will produce this TypeScript error: Object literal may only specify known properties, and 'applicationName' does not exist in type 'PayloadDefault'.

Not sure if this is a bug or if I'm overlooking something.

Daan

@craumix
Copy link

craumix commented Aug 28, 2024

Have a look at #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants