Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 4, 2022
1 parent bb6d9d6 commit 392081c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import {Primitive, JsonObject} from 'type-fest';

export type ErrorObject = {
name?: string;
stack?: string;
message?: string;
code?: string;
stack?: string;
cause?: unknown;
code?: string;
} & JsonObject;

export type ErrorLike = {
[key: string]: unknown;
name: string;
stack: string;
message: string;
code?: string;
stack: string;
cause?: unknown;
code?: string;
};

export interface Options {
Expand Down Expand Up @@ -156,6 +156,5 @@ isErrorLike({
});
//=> false
```
*/
export function isErrorLike(value: unknown): value is ErrorLike;

0 comments on commit 392081c

Please sign in to comment.