Function: isIsoBoxType()
ts
function isIsoBoxType<T>(type, box): box is IsoBoxMap[T];Defined in: libs/iso-bmff/src/isIsoBoxType.ts:13
Check if a box is of a specific type. This is a type guard function.
Type Parameters
T
T extends keyof IsoBoxMap
Parameters
type
T
The type to check for
box
unknown
The box to check
Returns
box is IsoBoxMap[T]
true if the box is of the specified type, false otherwise