Skip to content

Commit

Permalink
fix(binding-http/credential): use ? instead of | undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
relu91 committed Aug 2, 2023
1 parent 7cdcd96 commit 5469a3a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/binding-http/src/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface BasicCredentialConfiguration {
export class BasicCredential extends Credential {
private readonly username: string;
private readonly password: string;
private readonly options: BasicSecurityScheme | undefined;
private readonly options?: BasicSecurityScheme;
/**
*
*/
Expand Down Expand Up @@ -114,7 +114,7 @@ export class BasicKeyCredential extends Credential {

export class OAuthCredential extends Credential {
private token: Token | Promise<Token>;
private readonly refresh: (() => Promise<Token>) | undefined;
private readonly refresh?: () => Promise<Token>;

/**
*
Expand Down Expand Up @@ -167,9 +167,9 @@ export class TuyaCustomBearer extends Credential {
protected key: string;
protected secret: string;
protected baseUri: string;
protected token: string | undefined;
protected refreshToken: string | undefined;
protected expireTime: Date | undefined;
protected token?: string;
protected refreshToken?: string;
protected expireTime?: Date;

constructor(credentials: TuyaCustomBearerCredentialConfiguration, scheme: TuyaCustomBearerSecurityScheme) {
super();
Expand Down

0 comments on commit 5469a3a

Please sign in to comment.