Skip to content

Commit

Permalink
feat: export protos in src/index.ts (#296)
Browse files Browse the repository at this point in the history
* export protos in index.ts

* still on typescropt 3.7.0

* reformat to align with mass PR change

Co-authored-by: Alexander Fenster <github@fenster.name>
  • Loading branch information
xiaozhenliu-gg5 and alexander-fenster committed Feb 26, 2020
1 parent 4afadae commit e6ac1b5
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baselines/dlp/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ export {v2, DlpServiceClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v2, DlpServiceClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions baselines/kms/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ export {v1, KeyManagementServiceClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1, KeyManagementServiceClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions baselines/monitoring/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ export {v3, AlertPolicyServiceClient, GroupServiceClient, MetricServiceClient, N
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v3, AlertPolicyServiceClient, GroupServiceClient, MetricServiceClient, NotificationChannelServiceClient, ServiceMonitoringServiceClient, UptimeCheckServiceClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions baselines/redis/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ export {v1beta1, CloudRedisClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1beta1, CloudRedisClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions baselines/showcase/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ export {v1beta1, EchoClient, IdentityClient, MessagingClient, TestingClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1beta1, EchoClient, IdentityClient, MessagingClient, TestingClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions baselines/texttospeech/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ export {v1, TextToSpeechClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v1, TextToSpeechClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions baselines/translate/src/index.ts.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ export {v3beta1, TranslationServiceClient};
// For compatibility with JavaScript libraries we need to provide this default export:
// tslint:disable-next-line no-default-export
export default {v3beta1, TranslationServiceClient};
import * as protos from '../protos/protos';
export {protos}
2 changes: 2 additions & 0 deletions templates/typescript_gapic/src/index.ts.njk
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export default { {{- api.naming.version }}
, {{ service.name.toPascalCase() + 'Client' }}
{%- endfor -%}
};
import * as protos from '../protos/protos';
export {protos}

0 comments on commit e6ac1b5

Please sign in to comment.