Files
klz-cables.com/.pnpm-store/v10/files/84/282e20e1226fba2b7ca3f14283faa005bdeb024c523aed153b6c327b76326649f5dabcf46738908ae8be50bce9cbc4fc2ffd9c3121a9cf253fcbe100bf433b
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

19 lines
1009 B
Plaintext

//#region src/types/globals.d.ts
type FetchInterface = (input: string | any, init?: RequestInit | any) => Promise<unknown>;
type UrlInterface = typeof URL;
/** While the standard says 'string | URL' for the 'url' parameter, some implementations (e.g. React Native) only accept 'string' */
type WebSocketConstructor = {
new (url: string, protocols?: string | string[]): WebSocketInterface;
};
type WebSocketInterface = {
readonly readyState: number;
addEventListener(type: string, listener: (this: WebSocketInterface, ev: any) => any): void;
removeEventListener(type: string, listener: (this: WebSocketInterface, ev: any) => any): void;
send(data: string): void;
close(code?: number, reason?: string): void;
};
type LogLevels = 'log' | 'info' | 'warn' | 'error';
type ConsoleInterface = { [level in LogLevels]: (...args: any) => any };
//#endregion
export { ConsoleInterface, FetchInterface, LogLevels, UrlInterface, WebSocketConstructor, WebSocketInterface };
//# sourceMappingURL=globals.d.ts.map