indicative-compiler › "Sanitizer/Compiler" › Compiler
Compiles rules and messages schema to an array of top level functions highly optimized for speed.
- Compiler
+ new Compiler(schema
: Schema, sanitizations
: object): Compiler
Parameters:
Name | Type |
---|---|
schema |
Schema |
sanitizations |
object |
Returns: Compiler
▸ compile(): SanitizationsRunner‹› | ArrayWrapper‹›[]
Compiles the schema to an array of functions
Returns: SanitizationsRunner‹› | ArrayWrapper‹›[]