Enhance player start navigation mode type checking
This commit is contained in:
@@ -904,7 +904,8 @@ function readPlayerStartNavigationMode(value: unknown, label: string) {
|
|||||||
value,
|
value,
|
||||||
label,
|
label,
|
||||||
"firstPerson",
|
"firstPerson",
|
||||||
isPlayerStartNavigationMode
|
(candidate): candidate is "firstPerson" | "thirdPerson" =>
|
||||||
|
typeof candidate === "string" && isPlayerStartNavigationMode(candidate)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user