Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / GuardVerifyResult

Type Alias: GuardVerifyResult

ts
type GuardVerifyResult = 
  | {
  ok: true;
  snapshot: MemorySnapshot;
  tier: MemoryGuardTier;
  verifyDurationUs: number;
}
  | {
  mismatched: ReadonlyArray<string>;
  ok: false;
  snapshot: MemorySnapshot;
  tier: MemoryGuardTier;
  verifyDurationUs: number;
};

Defined in: packages/security/src/guard/types.ts:50

Result returned by Guard.verify(...). The ok discriminator matches the rest of the package so callers can switch uniformly.

Stable