MISC: Refactor BLADEBURNER Identifier Lookup (#1646)

This commit is contained in:
Denis Čahuk
2024-09-15 02:39:18 +02:00
committed by GitHub
parent f39402e8be
commit cde5e3f6ae
10 changed files with 186 additions and 108 deletions
+1
View File
@@ -12,6 +12,7 @@ export interface IReviverValue<T = any> {
ctor: string;
data: T;
}
function isReviverValue(value: unknown): value is IReviverValue {
return (
typeof value === "object" && value !== null && "ctor" in value && typeof value.ctor === "string" && "data" in value