mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
MISC: Refactor BLADEBURNER Identifier Lookup (#1646)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user