@zuzuche/sentry-miniapp
Version:
用于小程序/小游戏平台的 Sentry SDK
23 lines • 679 B
TypeScript
import { Integration } from '@sentry/types';
/**
* 本集成只是将官方的functionToString的实现
* 从直接赋值改成defineProperty
* 因为微信小程序不允许直接赋值给全局变量
* @see https://github.com/getsentry/sentry-javascript/blob/5.15.4/packages/core/src/integrations/functiontostring.ts
*/
/** Patch toString calls to return proper name for wrapped functions */
export declare class FunctionToString implements Integration {
/**
* @inheritDoc
*/
name: string;
/**
* @inheritDoc
*/
static id: string;
/**
* @inheritDoc
*/
setupOnce(): void;
}
//# sourceMappingURL=functionToString.d.ts.map