Skip to content

Commit

Permalink
Add info about cause explicitly always being undefined (#124)
Browse files Browse the repository at this point in the history
* Add info about `cause` explicitly always being `undefined`

* Update index.d.ts

Co-authored-by: Pelle Wessman <pelle@kodfabrik.se>

* Update index.d.ts

---------

Co-authored-by: Pelle Wessman <pelle@kodfabrik.se>
  • Loading branch information
KATT and voxpelli authored May 3, 2023
1 parent 986ef19 commit 3feb29b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export interface SerializedError {
* This is available for subsequent serializers to use.
*/
raw: Error;
/**
* `cause` is never included in the log output, if you need the `cause`, use {@link raw.cause}
*/
cause?: never;
/**
* Any other extra properties that have been attached to the object will also be present on the serialized object.
*/
Expand Down

0 comments on commit 3feb29b

Please sign in to comment.