File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1030,6 +1030,25 @@ declare global {
1030
1030
}
1031
1031
const User : UserConstructor ;
1032
1032
1033
+ type LogLevels = 'error' | 'warn' | 'info' | 'debug' | 'verbose' | 'silly' ;
1034
+ interface LoggerInterface {
1035
+
1036
+ log ( level : LogLevels , args : any ) : void
1037
+
1038
+ info ( args : any ) : LoggerInterface
1039
+
1040
+ error ( args : any ) : LoggerInterface
1041
+
1042
+ warn ( args : any ) : LoggerInterface
1043
+
1044
+ verbose ( args : any ) : LoggerInterface
1045
+
1046
+ debug ( args : any ) : LoggerInterface
1047
+
1048
+ silly ( args : any ) : LoggerInterface
1049
+ }
1050
+
1051
+
1033
1052
/**
1034
1053
* A Parse.Schema object is for handling schema data from Parse.
1035
1054
* All the schemas methods require MasterKey.
@@ -1292,6 +1311,10 @@ declare global {
1292
1311
interface JobRequest < T extends Params = Params > {
1293
1312
params : T ;
1294
1313
message : ( response : any ) => void ;
1314
+ log : LoggerInterface ,
1315
+ headers ?: any ;
1316
+ ip : string ;
1317
+ jobName : string ,
1295
1318
}
1296
1319
1297
1320
interface Params {
@@ -1307,6 +1330,7 @@ declare global {
1307
1330
1308
1331
interface ValidatorField {
1309
1332
type ?: any ;
1333
+ required ?: boolean ;
1310
1334
constant ?: boolean ;
1311
1335
default ?: any ;
1312
1336
options ?: any [ ] | Function ;
You can’t perform that action at this time.
0 commit comments