Skip to content

Commit

Permalink
fix: fallback can now be a string
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Apr 20, 2021
1 parent 1146325 commit d9e2de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clientInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface ClientOptions
libName?: string;
libVersion?: string;
clientConfig?: gax.ClientConfig;
fallback?: boolean;
fallback?: boolean | 'rest' | 'proto';
apiEndpoint?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/grpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class GrpcClient {
auth: GoogleAuth;
grpc: GrpcModule;
grpcVersion: string;
fallback: boolean;
fallback: boolean | 'rest' | 'proto';
private static protoCache = new Map<string, grpc.GrpcObject>();

/**
Expand Down

0 comments on commit d9e2de3

Please sign in to comment.