UNPKG

indicative-compiler

Version:

Indicative compiler to compile parsed schema into highly optimized functions

26 lines (25 loc) 661 B
/** * @module compiler/sanitizer */ /** * indicative-compiler * * (c) Harminder Virk <virk@adonisjs.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import { ArrayWrapper } from './ArrayWrapper'; import { SanitizationsRunner } from './SanitizationsRunner'; /** * Executor is meant to execute the compiled functions with runtime * data. */ export declare class Executor { private fns; constructor(fns: (ArrayWrapper | SanitizationsRunner)[]); /** * Executes the compiled functions in sequence. */ exec(data: any, config: unknown): any; }