Fix string type check

This commit is contained in:
Justin Spahr-Summers 2025-01-07 14:40:53 +00:00
commit b538731af0
No known key found for this signature in database

View file

@ -449,7 +449,7 @@ export class Server<
}
let description: string | undefined;
if (rest[0] instanceof String) {
if (typeof rest[0] === "string") {
description = rest.shift() as string;
}