Files
klz-cables.com/.pnpm-store/v10/files/db/e81c5c988338139322c5ed6ef41fba7ca1b6dcd25c74c5836bd2b8f6723b7a290d6d923e7a2d47b94c3263d3ed4a3d5fc4fef858c00b680194174c67d0d2a3
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

44 lines
2.1 KiB
Plaintext

import type { ReactElement } from 'react';
import type { FormatNames, Locale } from './AppConfig.js';
import type DateTimeFormatOptions from './DateTimeFormatOptions.js';
import type Formats from './Formats.js';
import IntlError from './IntlError.js';
import type NumberFormatOptions from './NumberFormatOptions.js';
import type RelativeTimeFormatOptions from './RelativeTimeFormatOptions.js';
import type TimeZone from './TimeZone.js';
import { type Formatters, type IntlCache } from './formatters.js';
type Props = {
locale: Locale;
timeZone?: TimeZone;
onError?(error: IntlError): void;
formats?: Formats;
now?: Date;
/** @private */
_formatters?: Formatters;
/** @private */
_cache?: IntlCache;
};
export default function createFormatter(props: Props): {
dateTime: {
(value: Date | number, options?: DateTimeFormatOptions): string;
(value: Date | number, format?: FormatNames["dateTime"], options?: DateTimeFormatOptions): string;
};
number: {
(value: number | bigint, options?: NumberFormatOptions): string;
(value: number | bigint, format?: FormatNames["number"], options?: NumberFormatOptions): string;
};
relativeTime: {
(date: number | Date, now?: RelativeTimeFormatOptions["now"]): string;
(date: number | Date, options?: RelativeTimeFormatOptions): string;
};
list: {
<Value extends string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, options?: Intl.ListFormatOptions): Value extends string ? string : Iterable<ReactElement>;
<Value extends string | ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>(value: Iterable<Value>, format?: FormatNames["list"], options?: Intl.ListFormatOptions): Value extends string ? string : Iterable<ReactElement>;
};
dateTimeRange: {
(start: Date | number, end: Date | number, options?: DateTimeFormatOptions): string;
(start: Date | number, end: Date | number, format?: FormatNames["dateTime"], options?: DateTimeFormatOptions): string;
};
};
export {};