StaticfromCreates a type guard function that checks for strict equality against a specific reference value.
The returned function preserves literal types (e.g., "admin" instead of string),
making it useful for narrow type inference in discriminated unions or constant checks.
The fixed value to compare against.
A type guard function that returns true if a given value is strictly equal to value.
A static utility class for constructing parameterized type guard functions.
GuardFactoryprovides factory methods that generate reusable type guards, enabling more expressive and composable runtime type checks.