lynx-framework
Version:
lynx is a NodeJS framework for Web Development, based on decorators and the async/await support.
14 lines (13 loc) • 487 B
TypeScript
/**
* Base class for any filtering class.
* Each filter class will be automatically instantiated once.
*/
export default abstract class BaseFilter {
/**
* This method will be executed when the filter shell be applied.
* It shell return the formatted string.
* @param data the data that shall be filtered
* @param args additional arguments that are passed to the filter function in the template
*/
abstract filter(data: any, ...args: any[]): string;
}