This function is used to create a type guard that always returns true, effectively allowing the input to be treated as the specified type without any runtime checks.
assume<string>(42); // true (no runtime check is performed) Copy
assume<string>(42); // true (no runtime check is performed)
This function is used to create a type guard that always returns true, effectively allowing the input to be treated as the specified type without any runtime checks.