Skip to content

Typescript allows passing any string as t() argument #1116

Open
@andresespinosapc

Description

@andresespinosapc

Clear and concise description of the problem

I followed all the steps from the Typescript support page but it does not give an error when I use the t function with a missing key.

It does show autocomplete suggestions in the template though.

Suggested solution

Typescript should give an error when trying to use a key that is not in the schema

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ProposalRequest for commentstypescript❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perf

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions