docs: Meta
type in documentation is wrong
#3453
Labels
📚 documentation / examples
Improvements or additions to documentation
Meta
type in documentation is wrong
#3453
Area of Improvement
In the documentation, it is suggested to use an interface for the
Meta
typing. This is wrong and does not work (and in my case confuses the developer massively, since it is telling, that it is not complying toRecord<string, unknown>
).Read more about this: microsoft/TypeScript#15300 (comment)
We need to switch this to a
type
in the documentation.Link to related docs
https://trpc.io/docs/metadata
Additional information
https://stackblitz.com/edit/github-n9oaj1?file=src/server/trpc.ts
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: