Skip to content
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

Export ErrorMessage from index.ts? #584

Closed
cakoose opened this issue Jun 20, 2021 · 1 comment · Fixed by #604
Closed

Export ErrorMessage from index.ts? #584

cakoose opened this issue Jun 20, 2021 · 1 comment · Fixed by #604
Assignees
Labels
api: clouderrorreporting Issues related to the googleapis/nodejs-error-reporting API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification. Not an issue.

Comments

@cakoose
Copy link

cakoose commented Jun 20, 2021

I'm using the "manual error reporting" flow. What's a little strange is that the ErrorMessage type (returned from ErrorReporting.event() isn't exported from the top-level of the package.

I end up having to import it from a weird spot, e.g.:

import {ErrorMessage} from '@google-cloud/error-reporting/build/src/classes/error-message';

Is there a better way to import this type?

@product-auto-label product-auto-label bot added the api: clouderrorreporting Issues related to the googleapis/nodejs-error-reporting API. label Jun 20, 2021
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Jun 21, 2021
@freelerobot freelerobot added priority: p2 Moderately-important priority. Fix may not be included in next release. and removed triage me I really want to be triaged. labels Jun 23, 2021
@freelerobot
Copy link
Contributor

Great point - we should explicitly export it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: clouderrorreporting Issues related to the googleapis/nodejs-error-reporting API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants