Fix string type check
This commit is contained in:
parent
c14a5d44bf
commit
b538731af0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue