Skip to content

Commit

Permalink
fix options
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jan 16, 2025
1 parent 31983df commit b6f7ada
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 13 deletions.
5 changes: 2 additions & 3 deletions src/Adapters/Analytics/AnalyticsAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export class AnalyticsAdapter {
@param {any} parameters: the analytics request body, analytics info will be in the dimensions property
@param {Request} req: the original http request
*/
async trackEvent(eventName: string, parameters: any, req: any): Promise<any> {

}
async trackEvent(eventName: string, parameters: any, req: any): Promise<any> {}
}

export default AnalyticsAdapter;
2 changes: 1 addition & 1 deletion src/Adapters/Email/MailAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export class MailAdapter {
// sendVerificationEmail({ link, appName, user }) {}
// sendPasswordResetEmail({ link, appName, user }) {}
}

export default MailAdapter;
1 change: 1 addition & 0 deletions src/Adapters/Files/FilesAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ export function validateFilename(filename: string): Parse.Error {
return null;
}

export default FilesAdapter;
1 change: 1 addition & 0 deletions src/Adapters/Logger/LoggerAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ export class LoggerAdapter {
log(level: string, message: string, metadata: any): void {}
}

export default LoggerAdapter;
8 changes: 2 additions & 6 deletions src/Adapters/PubSub/PubSubAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ export class PubSubAdapter {
/**
* @returns {PubSubAdapter.Publisher}
*/
createPublisher(): Publisher {
throw new Error('not implemented');
}
createPublisher() {}
/**
* @returns {PubSubAdapter.Subscriber}
*/
createSubscriber(): Subscriber {
throw new Error('not implemented');
}
createSubscriber() {}
}

/**
Expand Down
9 changes: 6 additions & 3 deletions src/Adapters/Push/PushAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,22 @@
* @interface
* @memberof module:Adapters
*/
export interface PushAdapter {
export class PushAdapter {
/**
* @param {any} body
* @param {Parse.Installation[]} installations
* @param {any} pushStatus
* @returns {Promise}
*/
send(body: any, installations: any[], pushStatus: any): Promise<any>;
async send(body: any, installations: any[], pushStatus: any): Promise<any> {}

/**
* Get an array of valid push types.
* @returns {Array} An array of valid push types
*/
getValidPushTypes(): string[]
getValidPushTypes(): string[] {
return [];
}
}

export default PushAdapter;
1 change: 1 addition & 0 deletions src/Adapters/WebSocketServer/WSSAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ export class WSSAdapter {
close(): void {}
}

export default WSSAdapter;

0 comments on commit b6f7ada

Please sign in to comment.