Skip to content

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): void

Parameters:

Parameter Type Description
_object T The value to assert.

Returns: void