import sula from '../../core' ; export function registerFilterPlugin < Context = unknown > ( pluginName ) { return function wrapFilter ( filterClass ) { sula . filterType ( pluginName , ( ctx , config = { } ) => { return new filterClass ( ctx , config ) ; } ) ; } ; }