Skip to content

Commit

Permalink
docs(utilities): add missing since
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Feb 1, 2024
1 parent 431681e commit 592ec53
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

Check warning on line 41 in src/randomizer.ts

View check run for this annotation

Codecov / codecov/patch

src/randomizer.ts#L40-L41

Added lines #L40 - L41 were not covered by tests
*/
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

Check warning on line 52 in src/randomizer.ts

View check run for this annotation

Codecov / codecov/patch

src/randomizer.ts#L51-L52

Added lines #L51 - L52 were not covered by tests
*/
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

Check warning on line 68 in src/randomizer.ts

View check run for this annotation

Codecov / codecov/patch

src/randomizer.ts#L67-L68

Added lines #L67 - L68 were not covered by tests
*/
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 592ec53

Please sign in to comment.