Skip to content

Commit b6f7ada

Browse files
committed
fix options
1 parent 31983df commit b6f7ada

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

src/Adapters/Analytics/AnalyticsAdapter.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ export class AnalyticsAdapter {
99
@param {any} parameters: the analytics request body, analytics info will be in the dimensions property
1010
@param {Request} req: the original http request
1111
*/
12-
async trackEvent(eventName: string, parameters: any, req: any): Promise<any> {
13-
14-
}
12+
async trackEvent(eventName: string, parameters: any, req: any): Promise<any> {}
1513
}
1614

15+
export default AnalyticsAdapter;

src/Adapters/Email/MailAdapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ export class MailAdapter {
2121
// sendVerificationEmail({ link, appName, user }) {}
2222
// sendPasswordResetEmail({ link, appName, user }) {}
2323
}
24-
24+
export default MailAdapter;

src/Adapters/Files/FilesAdapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,4 @@ export function validateFilename(filename: string): Parse.Error {
118118
return null;
119119
}
120120

121+
export default FilesAdapter;

src/Adapters/Logger/LoggerAdapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ export class LoggerAdapter {
1717
log(level: string, message: string, metadata: any): void {}
1818
}
1919

20+
export default LoggerAdapter;

src/Adapters/PubSub/PubSubAdapter.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ export class PubSubAdapter {
77
/**
88
* @returns {PubSubAdapter.Publisher}
99
*/
10-
createPublisher(): Publisher {
11-
throw new Error('not implemented');
12-
}
10+
createPublisher() {}
1311
/**
1412
* @returns {PubSubAdapter.Subscriber}
1513
*/
16-
createSubscriber(): Subscriber {
17-
throw new Error('not implemented');
18-
}
14+
createSubscriber() {}
1915
}
2016

2117
/**

src/Adapters/Push/PushAdapter.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@
1414
* @interface
1515
* @memberof module:Adapters
1616
*/
17-
export interface PushAdapter {
17+
export class PushAdapter {
1818
/**
1919
* @param {any} body
2020
* @param {Parse.Installation[]} installations
2121
* @param {any} pushStatus
2222
* @returns {Promise}
2323
*/
24-
send(body: any, installations: any[], pushStatus: any): Promise<any>;
24+
async send(body: any, installations: any[], pushStatus: any): Promise<any> {}
2525

2626
/**
2727
* Get an array of valid push types.
2828
* @returns {Array} An array of valid push types
2929
*/
30-
getValidPushTypes(): string[]
30+
getValidPushTypes(): string[] {
31+
return [];
32+
}
3133
}
3234

35+
export default PushAdapter;

src/Adapters/WebSocketServer/WSSAdapter.ts

+1
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ export class WSSAdapter {
5252
close(): void {}
5353
}
5454

55+
export default WSSAdapter;

0 commit comments

Comments
 (0)