Skip to content

Commit b538731

Browse files
committed
Fix string type check
1 parent c14a5d4 commit b538731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export class Server<
449449
}
450450

451451
let description: string | undefined;
452-
if (rest[0] instanceof String) {
452+
if (typeof rest[0] === "string") {
453453
description = rest.shift() as string;
454454
}
455455

0 commit comments

Comments
 (0)