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

28 lines
686 B
Plaintext

import type { ContextOptions, DateArg } from "./types.js";
/**
* The {@link getDecade} function options.
*/
export interface GetDecadeOptions extends ContextOptions<Date> {}
/**
* @name getDecade
* @category Decade Helpers
* @summary Get the decade of the given date.
*
* @description
* Get the decade of the given date.
*
* @param date - The given date
* @param options - An object with options
*
* @returns The year of decade
*
* @example
* // Which decade belongs 27 November 1942?
* const result = getDecade(new Date(1942, 10, 27))
* //=> 1940
*/
export declare function getDecade(
date: DateArg<Date> & {},
options?: GetDecadeOptions | undefined,
): number;