HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/good-life-be/node_modules/@jsdevtools/ono/cjs/stack.d.ts
import { ErrorLike } from "./types";
/**
 * The Property Descriptor of a lazily-computed `stack` property.
 */
interface LazyStack {
    configurable: true;
    /**
     * Lazily computes the error's stack trace.
     */
    get(): string | undefined;
}
/**
 * Is the property lazily computed?
 */
export declare function isLazyStack(stackProp: PropertyDescriptor | undefined): stackProp is LazyStack;
/**
 * Is the stack property writable?
 */
export declare function isWritableStack(stackProp: PropertyDescriptor | undefined): boolean;
/**
 * Appends the original `Error.stack` property to the new Error's stack.
 */
export declare function joinStacks(newError: ErrorLike, originalError?: ErrorLike): string | undefined;
/**
 * Calls `joinStacks` lazily, when the `Error.stack` property is accessed.
 */
export declare function lazyJoinStacks(lazyStack: LazyStack, newError: ErrorLike, originalError?: ErrorLike): void;
export {};