Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Latest commit

 

History

History
45 lines (25 loc) · 1.11 KB

_sanitizer_compiler_.compiler.md

File metadata and controls

45 lines (25 loc) · 1.11 KB

indicative-compiler"Sanitizer/Compiler"Compiler

Class: Compiler

Compiles rules and messages schema to an array of top level functions highly optimized for speed.

Hierarchy

  • Compiler

Index

Constructors

Methods

Constructors

constructor

+ new Compiler(schema: Schema, sanitizations: object): Compiler

Parameters:

Name Type
schema Schema
sanitizations object

Returns: Compiler

Methods

compile

compile(): SanitizationsRunner‹› | ArrayWrapper‹›[]

Compiles the schema to an array of functions

Returns: SanitizationsRunner‹› | ArrayWrapper‹›[]