From 592ec5335162c73e7ae17f359968afec867e5338 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Fri, 2 Feb 2024 00:43:56 +0100 Subject: [PATCH] docs(utilities): add missing since --- src/randomizer.ts | 6 ++++++ src/utils/merge-locales.ts | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/randomizer.ts b/src/randomizer.ts index 3264ec1da82..d2c6892b616 100644 --- a/src/randomizer.ts +++ b/src/randomizer.ts @@ -37,6 +37,8 @@ * locale: ..., * randomizer, * }); + * + * @since 8.2.0 */ export interface Randomizer { /** @@ -46,6 +48,8 @@ export interface Randomizer { * randomizer.next() // 0.3404027920160495 * randomizer.next() // 0.929890375900335 * randomizer.next() // 0.5866362918861691 + * + * @since 8.2.0 */ next(): number; @@ -60,6 +64,8 @@ export interface Randomizer { * // Fixed seeds (for reproducibility) * randomizer.seed(42); * randomizer.seed([42, 13.37]); + * + * @since 8.2.0 */ seed(seed: number | number[]): void; } diff --git a/src/utils/merge-locales.ts b/src/utils/merge-locales.ts index 8fb531dd2be..fd47923aff2 100644 --- a/src/utils/merge-locales.ts +++ b/src/utils/merge-locales.ts @@ -12,6 +12,8 @@ import type { LocaleDefinition } from '..'; * * @example * const de_CH_with_fallbacks = mergeLocales([ de_CH, de, en ]); + * + * @since 8.0.0 */ export function mergeLocales(locales: LocaleDefinition[]): LocaleDefinition { const merged: LocaleDefinition = {};