Skip to content

Commit 594bb70

Browse files
authored
refactor!: correct class name casing in base/dists/lognormal/ctor
This commit aligns the class name exported by TypeScript to match the exported class name in the JavaScript implementation. BREAKING CHANGE: rename class to use camel case To migrate, users should replace `Lognormal` with `LogNormal`. PR-URL: #12499 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 03bb27c commit 594bb70

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/lognormal/ctor/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Lognormal distribution.
2323
*/
24-
declare class Lognormal {
24+
declare class LogNormal {
2525
/**
2626
* Lognormal distribution constructor.
2727
*
@@ -151,4 +151,4 @@ declare class Lognormal {
151151

152152
// EXPORTS //
153153

154-
export = Lognormal;
154+
export = LogNormal;

lib/node_modules/@stdlib/stats/base/dists/lognormal/ctor/docs/types/test.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,36 @@
1818

1919
/* eslint-disable @typescript-eslint/no-unused-expressions */
2020

21-
import Lognormal = require( './index' );
21+
import LogNormal = require( './index' );
2222

2323

2424
// TESTS //
2525

2626
// The function returns a distribution instance...
2727
{
28-
new Lognormal(); // $ExpectType Lognormal
29-
new Lognormal( 1.0, 2.0 ); // $ExpectType Lognormal
28+
new LogNormal(); // $ExpectType LogNormal
29+
new LogNormal( 1.0, 2.0 ); // $ExpectType LogNormal
3030
}
3131

3232
// The compiler throws an error if the function is provided values other than two numbers...
3333
{
34-
new Lognormal( true, 2.0 ); // $ExpectError
35-
new Lognormal( false, 2.0 ); // $ExpectError
36-
new Lognormal( '5', 2.0 ); // $ExpectError
37-
new Lognormal( [], 2.0 ); // $ExpectError
38-
new Lognormal( {}, 2.0 ); // $ExpectError
39-
new Lognormal( ( x: number ): number => x, 2.0 ); // $ExpectError
40-
41-
new Lognormal( 1.0, true ); // $ExpectError
42-
new Lognormal( 1.0, false ); // $ExpectError
43-
new Lognormal( 1.0, '5' ); // $ExpectError
44-
new Lognormal( 1.0, [] ); // $ExpectError
45-
new Lognormal( 1.0, {} ); // $ExpectError
46-
new Lognormal( 1.0, ( x: number ): number => x ); // $ExpectError
34+
new LogNormal( true, 2.0 ); // $ExpectError
35+
new LogNormal( false, 2.0 ); // $ExpectError
36+
new LogNormal( '5', 2.0 ); // $ExpectError
37+
new LogNormal( [], 2.0 ); // $ExpectError
38+
new LogNormal( {}, 2.0 ); // $ExpectError
39+
new LogNormal( ( x: number ): number => x, 2.0 ); // $ExpectError
40+
41+
new LogNormal( 1.0, true ); // $ExpectError
42+
new LogNormal( 1.0, false ); // $ExpectError
43+
new LogNormal( 1.0, '5' ); // $ExpectError
44+
new LogNormal( 1.0, [] ); // $ExpectError
45+
new LogNormal( 1.0, {} ); // $ExpectError
46+
new LogNormal( 1.0, ( x: number ): number => x ); // $ExpectError
4747
}
4848

4949
// The compiler throws an error if the function is provided an unsupported number of arguments...
5050
{
51-
new Lognormal( 1.0 ); // $ExpectError
52-
new Lognormal( 1.0, 1.0, 2.0 ); // $ExpectError
51+
new LogNormal( 1.0 ); // $ExpectError
52+
new LogNormal( 1.0, 1.0, 2.0 ); // $ExpectError
5353
}

0 commit comments

Comments
 (0)