Skip to content

Commit 73d1df0

Browse files
committed
Added missing types
1 parent fcd73f0 commit 73d1df0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/error.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,12 @@ export function setUVMessage<T extends ExceptionJSON>(ex: T): T {
452452
return ex;
453453
}
454454

455+
declare global {
456+
interface ErrorConstructor {
457+
captureStackTrace?(targetObject: object, constructorOpt?: Function): void;
458+
}
459+
}
460+
455461
/**
456462
* An error with additional information about what happened.
457463
*

src/log.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55

66
import { List } from 'utilium';
77

8+
declare global {
9+
const performance: {
10+
now(): number;
11+
};
12+
const console: Record<'error' | 'warn' | 'info' | 'debug' | 'log', (...message: any[]) => void>;
13+
}
14+
815
/**
916
* The log levels
1017
*/

0 commit comments

Comments
 (0)