Function assertObjectHasProperties
- assertObjectHasProperties<T>(object, properties, objectDescription?): asserts object is Required<T>
-
Parameters
-
object: unknown
-
properties: (keyof T)[]
-
objectDescription: string = 'passed value'
Returns asserts object is Required<T>
Asserts that object has specific properties. Resulting object is assumed to have all properties, even optional, resulting in Required type.