Skip to content

Commit c16eb7b

Browse files
committed
Simplify type of brand arg
1 parent a6d9c8f commit c16eb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function isBranded(error: unknown, name: string) {
66
);
77
}
88

9-
export function brand<T extends Error>(error: T) {
9+
export function brand(error: Error) {
1010
Object.defineProperty(error, Symbol.for("apollo.error"), {
1111
value: error.name,
1212
enumerable: false,

0 commit comments

Comments
 (0)