@svta/common-media-library
Version:
A common library for media playback in JavaScript
29 lines • 1.02 kB
TypeScript
import type { SelectionSet } from '../../types/model/SelectionSet.js';
import type { Validation } from '../../types/Validation.js';
/**
* Validate a list of selection set.
* It validates in cascade, calling each child validation method.
*
* @example
* ```ts
* import cmaf, { SelectionSet } from '@svta/common-media-library/cmaf-ham';
* ...
*
* // const selectionSets: SelectionSet[] = ...;
*
* const validation = cmaf.validateSelectionSets(selectionSets);
* ```
*
* Example output: `{ status: true|false, errorMessages: [...] }`
*
* @param selectionSets - List of SelectionSet from cmaf ham model
* @param presentationId - Optional: parent presentation id
* @param prevValidation - Optional: validation object from parent previous validate method call
* @returns Validation
*
* @group CMAF
* @alpha
*
*/
export declare function validateSelectionSets(selectionSets: SelectionSet[], presentationId?: string, prevValidation?: Validation): Validation;
//# sourceMappingURL=validateSelectionSets.d.ts.map