This repository was archived by the owner on Aug 1, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 11/**
22 * Sanitation types.
33 */
4- export enum SanitizeTypes {
5- BLACKLIST = 1 ,
6- ESCAPE = 2 ,
7- LTRIM = 3 ,
8- NORMALIZE_EMAIL = 4 ,
9- RTRIM = 5 ,
10- STRIP_LOW = 6 ,
11- TO_BOOLEAN = 7 ,
12- TO_DATE = 8 ,
13- TO_FLOAT = 9 ,
14- TO_INT = 10 ,
15- TO_STRING = 11 ,
16- TRIM = 12 ,
17- WHITELIST = 13 ,
18- CUSTOM_SANITIZATION = 9999 ,
19- NESTED = 1000 ,
4+ export const enum SanitizeTypes {
5+ BLACKLIST = 'BLACKLIST' ,
6+ ESCAPE = 'ESCAPE' ,
7+ LTRIM = 'LTRIM' ,
8+ NORMALIZE_EMAIL = 'NORMALIZE_EMAIL' ,
9+ RTRIM = 'RTRIM' ,
10+ STRIP_LOW = 'STRIP_LOW' ,
11+ TO_BOOLEAN = 'TO_BOOLEAN' ,
12+ TO_DATE = 'TO_DATE' ,
13+ TO_FLOAT = 'TO_FLOAT' ,
14+ TO_INT = 'TO_INT' ,
15+ TO_STRING = 'TO_STRING' ,
16+ TRIM = 'TRIM' ,
17+ WHITELIST = 'WHITELIST' ,
18+ CUSTOM_SANITIZATION = 'CUSTOM_SANITIZATION' ,
19+ NESTED = 'NESTED' ,
2020}
Original file line number Diff line number Diff line change 1+ import { SanitizeTypes } from '../../enums' ;
2+
13/**
24 * This metadata interface contains information for sanitation.
35 */
46export interface SanitationMetadata {
57 /**
68 * Sanitation type.
79 */
8- type : number ;
10+ type : SanitizeTypes ;
911
1012 /**
1113 * Object that is used to be sanitized.
You can’t perform that action at this time.
0 commit comments