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

helpers.d.ts Cannot find name 'Event'. #59

Closed
LinZhanMing opened this issue May 5, 2022 · 1 comment
Closed

helpers.d.ts Cannot find name 'Event'. #59

LinZhanMing opened this issue May 5, 2022 · 1 comment

Comments

@LinZhanMing
Copy link

miniprogram/miniprogram_npm/sentry-miniapp/helpers.d.ts:28:96 - error TS2304: Cannot find name 'Event'.
28 export declare function breadcrumbEventHandler(eventName: string, debounce?: boolean): (event: Event) => void;

miniprogram/miniprogram_npm/sentry-miniapp/helpers.d.ts:34:57 - error TS2304: Cannot find name 'Event'.
34 export declare function keypressEventHandler(): (event: Event) => void;

版本: 0.12.0
npm安装
微信小程序原生开发(Typescript)

@LinZhanMing
Copy link
Author

1651733043(1)
要加上Event类型
import { Mechanism, WrappedFunction, Event } from '@sentry/types';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant