yahoo-finance2
Version:
JS API for Yahoo Finance
28 lines • 762 B
TypeScript
import type { ValidationError } from "./validate/index.js";
export declare class BadRequestError extends Error {
name: string;
}
export declare class HTTPError extends Error {
name: string;
}
export declare class InvalidOptionsError extends Error {
name: string;
}
export declare class NoEnvironmentError extends Error {
name: string;
}
export declare class FailedYahooValidationError extends Error {
name: string;
result: any;
errors?: null | ValidationError[];
constructor(message: string, { result, errors }: {
result: any;
errors?: null | ValidationError[];
});
}
type ErrorsIndex = {
[key: string]: any;
};
declare const errors: ErrorsIndex;
export default errors;
//# sourceMappingURL=errors.d.ts.map