Skip to content

Commit

Permalink
docs(utilities): add missing since (#2637)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Feb 2, 2024
1 parent 431681e commit b1987ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/randomizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
* locale: ...,
* randomizer,
* });
*
* @since 8.2.0
*/
export interface Randomizer {
/**
Expand All @@ -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;

Expand All @@ -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;
}
2 changes: 2 additions & 0 deletions src/utils/merge-locales.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit b1987ef

Please sign in to comment.