assertGenericObject<T>
Asserts that a value is a generic object, narrowing its type in place.
Import:
import { assertGenericObject } from '@mnaoumov/typescript-lib/type-guards';Signature:
function assertGenericObject(_object: T): voidParameters:
| Parameter | Type | Description |
|---|---|---|
_object |
T | The value to assert. |
Returns: void