UNPKG

@playkit-js/playkit-js

Version:

[![Build Status](https://github.com/kaltura/playkit-js/actions/workflows/run_canary.yaml/badge.svg)](https://github.com/kaltura/playkit-js/actions/workflows/run_canary.yaml) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.

23 lines (21 loc) 421 B
/** * Base middleware. * @classdesc */ export default class BaseMiddleware { /** * Id of the middleware instance. * @public */ public id!: string; /** * Calls the next handler in the middleware chain. * @param {Function} next - The next handler in the middleware chain. * @returns {void} */ public callNext(next: (...args: any[]) => any): void { if (next) { next(); } } }