New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PUB-60 : Deprecate v1,v2 style subscribers #64
Conversation
@@ -94,6 +109,18 @@ export default class SubscriberV2 extends Subscriber { | |||
}; | |||
|
|||
return class extends subscriberClass { | |||
constructor(...args: any[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy has a fix for the issue: Unexpected any. Specify a different type.
constructor(...args: any[]) { | |
constructor(...args: unknown[]) { |
import { CredentialBody } from 'google-auth-library'; | ||
import chalk from 'chalk'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy has a fix for the issue: Replace chalk·from·'chalk
with util·from·'util
import chalk from 'chalk'; | |
import util from 'util'; |
import { SubscriberOptions as GoogleCloudSubscriberOptions } from '@google-cloud/pubsub/build/src/subscriber'; | ||
import { Logger } from '../service/logger'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy has a fix for the issue: Replace {·Logger·}·from·'../service/logger
with util·from·'util
import { Logger } from '../service/logger'; | |
import util from 'util'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes PUB-60