UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

4 lines (3 loc) 212 B
export type Callable<T> = new (obj: any) => T; export declare function map<T>(value: T | undefined, clazz?: Callable<T>): T; export declare function mapArray<T>(value: T[] | undefined, clazz?: Callable<T>): T[];