Archive
Archive:
object
Defined in: packages/core/src/types.ts:58
Companion object for the Archive type. Provides lightweight structural type guard.
Type Declaration
Section titled “Type Declaration”
readonlyis: (value) =>value is Archive
Structural type guard for Archive.
Parameters
Section titled “Parameters”unknown
the value to check
Returns
Section titled “Returns”value is Archive
true if value has the Archive shape (type === “archive”)
Example
Section titled “Example”if (Archive.is(value)) { ... }