Skip to content

Commit

Permalink
More error translations
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpocock committed May 2, 2022
1 parent 60500d3 commit 1354df5
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-buttons-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ts-error-translator': patch
---

More error translations
6 changes: 6 additions & 0 deletions packages/engine/errors/2307.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
original: "Cannot find module '{0}' or its corresponding type declarations."
excerpt: "This could be one of two things - either '{0}' doesn't exist on your file system, or I can't find any type declarations for it."
---

TODO
6 changes: 6 additions & 0 deletions packages/engine/errors/2314.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
original: "Generic type '{0}' requires {1} type argument(s)."
excerpt: "It looks like '{0}' requires '{1}' type arguments, which means you need to pass them in via a generic."
---

TODO
6 changes: 6 additions & 0 deletions packages/engine/errors/2344.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
original: "Type '{0}' does not satisfy the constraint '{1}'."
excerpt: "You're trying to pass in '{0}' into a slot where I can see only '{1}' can be passed."
---

TODO
18 changes: 18 additions & 0 deletions packages/engine/errors/2353.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
original: "Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."
excerpt: "You can't pass property '{0}' to object '{1}'."
---

This object:

```
{1}
```

Doesn't contain this property:

```
{0}
```

So don't pass it!

1 comment on commit 1354df5

@vercel
Copy link

@vercel vercel bot commented on 1354df5 May 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.