Skip to content

Commit cd7cf2e

Browse files
committed
build types
1 parent 206daf6 commit cd7cf2e

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

src/CoreManager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ const config: Config & Record<string, any> = {
355355
IDEMPOTENCY: false,
356356
ALLOW_CUSTOM_OBJECT_ID: false,
357357
PARSE_ERRORS: [],
358+
NODE_LOGGING: false,
358359
};
359360

360361
function requireMethods(name: string, methods: string[], controller: any) {

src/Parse.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,17 @@ const Parse = {
314314
return CoreManager.get('ALLOW_CUSTOM_OBJECT_ID');
315315
},
316316

317+
/**
318+
* @property {boolean} Parse.nodeLogging
319+
* @static
320+
*/
321+
set nodeLogging(value) {
322+
CoreManager.set('NODE_LOGGING', value);
323+
},
324+
get nodeLogging() {
325+
return CoreManager.get('NODE_LOGGING');
326+
},
327+
317328
_request(...args) {
318329
return CoreManager.getRESTController().request.apply(null, args);
319330
},

types/Parse.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ declare const Parse: {
322322
* @static
323323
*/
324324
allowCustomObjectId: any;
325+
/**
326+
* @property {boolean} Parse.nodeLogging
327+
* @static
328+
*/
329+
nodeLogging: any;
325330
_request(...args: any[]): any;
326331
_ajax(...args: any[]): any;
327332
_decode(_: any, value: any): any;

0 commit comments

Comments
 (0)