-import util from 'node:util';
-
const isUndefined = (value: unknown): boolean => {
return typeof value === 'undefined';
};
timeoutError: Error,
timeoutCallback: () => void = () => {
/* This is intentional */
- }
+ },
): Promise<T> => {
// Create a timeout promise that rejects in timeout milliseconds
const timeoutPromise = new Promise<never>((_, reject) => {