Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(utilities): add missing since #2637

Merged
merged 1 commit into from Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/randomizer.ts
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 @@
* 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 @@
* // 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
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