Skip to content
1 min read · 48 words

Variable: mediaReaderSchema

ts
const mediaReaderSchema: AnySchema<any>;

Validator schema used to validate a MediaReader value.

Remarks

Because MediaReader is a structural interface with no associated constructor, validation is duck-typed: the value must be an object, class instance, or function with stream and byteLength present as callable properties. Arity is not enforced.