Type guard function, checking if any property of the given object is not null. Narrows the type of all properties within the object type from T | null to just T.
Example:
incoming type is { a: number | null, b: string | null }
outgoing type is { a: number, b: string }
object to check
Type guard function, checking if any property of the given object is not null. Narrows the type of all properties within the object type from T | null to just T.
Example:
incoming type is { a: number | null, b: string | null }
outgoing type is { a: number, b: string }