We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e382e92 commit 413c35aCopy full SHA for 413c35a
src/types/image.ts
@@ -5,4 +5,5 @@ export interface ImageItem {
5
desc: string;
6
country: string;
7
isLoading: boolean;
8
+ shouldLoad?: boolean;
9
}
src/utils/errorHandler.ts
@@ -10,9 +10,9 @@ export class AppError extends Error {
10
) {
11
super(message);
12
this.name = 'AppError';
13
- // 保持堆栈跟踪
14
- if (Error.captureStackTrace) {
15
- Error.captureStackTrace(this, AppError);
+ // 保持堆栈跟踪 (V8/Node.js specific)
+ if (typeof (Error as any).captureStackTrace === 'function') {
+ (Error as any).captureStackTrace(this, AppError);
16
17
18
0 commit comments