Skip to content

Commit 03d8378

Browse files
committed
feat: update math/base/assert TypeScript declarations
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 59f6e29 commit 03d8378

1 file changed

Lines changed: 151 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/math/base/assert/docs/types

lib/node_modules/@stdlib/math/base/assert/docs/types/index.d.ts

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,34 @@ import isOddInt32 = require( '@stdlib/math/base/assert/int32-is-odd' );
2525
import isComposite = require( '@stdlib/math/base/assert/is-composite' );
2626
import isCoprime = require( '@stdlib/math/base/assert/is-coprime' );
2727
import isEven = require( '@stdlib/math/base/assert/is-even' );
28+
import isEvenf = require( '@stdlib/math/base/assert/is-evenf' );
2829
import isFinite = require( '@stdlib/math/base/assert/is-finite' );
2930
import isFinitef = require( '@stdlib/math/base/assert/is-finitef' );
3031
import isInfinite = require( '@stdlib/math/base/assert/is-infinite' );
3132
import isInfinitef = require( '@stdlib/math/base/assert/is-infinitef' );
3233
import isInteger = require( '@stdlib/math/base/assert/is-integer' );
34+
import isIntegerf = require( '@stdlib/math/base/assert/is-integerf' );
3335
import isnan = require( '@stdlib/math/base/assert/is-nan' );
3436
import isnanf = require( '@stdlib/math/base/assert/is-nanf' );
3537
import isNegativeFinite = require( '@stdlib/math/base/assert/is-negative-finite' );
3638
import isNegativeInteger = require( '@stdlib/math/base/assert/is-negative-integer' );
39+
import isNegativeIntegerf = require( '@stdlib/math/base/assert/is-negative-integerf' );
3740
import isNegativeZero = require( '@stdlib/math/base/assert/is-negative-zero' );
3841
import isNegativeZerof = require( '@stdlib/math/base/assert/is-negative-zerof' );
3942
import isNonNegativeFinite = require( '@stdlib/math/base/assert/is-nonnegative-finite' );
4043
import isNonNegativeInteger = require( '@stdlib/math/base/assert/is-nonnegative-integer' );
44+
import isNonnegativeIntegerf = require( '@stdlib/math/base/assert/is-nonnegative-integerf' );
4145
import isNonPositiveFinite = require( '@stdlib/math/base/assert/is-nonpositive-finite' );
4246
import isNonPositiveInteger = require( '@stdlib/math/base/assert/is-nonpositive-integer' );
4347
import isOdd = require( '@stdlib/math/base/assert/is-odd' );
48+
import isOddf = require( '@stdlib/math/base/assert/is-oddf' );
4449
import isPositiveFinite = require( '@stdlib/math/base/assert/is-positive-finite' );
4550
import isPositiveInteger = require( '@stdlib/math/base/assert/is-positive-integer' );
4651
import isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
4752
import isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' );
4853
import isPrime = require( '@stdlib/math/base/assert/is-prime' );
4954
import isProbability = require( '@stdlib/math/base/assert/is-probability' );
55+
import isProbabilityf = require( '@stdlib/math/base/assert/is-probabilityf' );
5056
import isSafeInteger = require( '@stdlib/math/base/assert/is-safe-integer' );
5157
import isPow2Uint32 = require( '@stdlib/math/base/assert/uint32-is-pow2' );
5258

@@ -155,6 +161,34 @@ interface Namespace {
155161
*/
156162
isEven: typeof isEven;
157163

164+
/**
165+
* Tests if a finite single-precision floating-point number is an even number.
166+
*
167+
* ## Notes
168+
*
169+
* - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined.
170+
*
171+
* @param x - value to test
172+
* @returns boolean indicating whether the value is an even number
173+
*
174+
* @example
175+
* var bool = ns.isEvenf( 5.0 );
176+
* // returns false
177+
*
178+
* @example
179+
* var bool = ns.isEvenf( -2.0 );
180+
* // returns true
181+
*
182+
* @example
183+
* var bool = ns.isEvenf( 0.0 );
184+
* // returns true
185+
*
186+
* @example
187+
* var bool = ns.isEvenf( NaN );
188+
* // returns false
189+
*/
190+
isEvenf: typeof isEvenf;
191+
158192
/**
159193
* Tests if a double-precision floating-point numeric value is finite.
160194
*
@@ -271,6 +305,26 @@ interface Namespace {
271305
*/
272306
isInteger: typeof isInteger;
273307

308+
/**
309+
* Tests if a finite single-precision floating-point number is an integer.
310+
*
311+
* ## Notes
312+
*
313+
* - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined.
314+
*
315+
* @param x - value to test
316+
* @returns boolean indicating whether the value is an integer
317+
*
318+
* @example
319+
* var bool = ns.isIntegerf( 1.0 );
320+
* // returns true
321+
*
322+
* @example
323+
* var bool = ns.isIntegerf( 3.14 );
324+
* // returns false
325+
*/
326+
isIntegerf: typeof isIntegerf;
327+
274328
/**
275329
* Tests if a double-precision floating-point numeric value is `NaN`.
276330
*
@@ -355,6 +409,26 @@ interface Namespace {
355409
*/
356410
isNegativeInteger: typeof isNegativeInteger;
357411

412+
/**
413+
* Tests if a finite single-precision floating-point number is a negative integer.
414+
*
415+
* @param x - value to test
416+
* @returns boolean indicating whether the value is a negative integer
417+
*
418+
* @example
419+
* var bool = ns.isNegativeIntegerf( -1.0 );
420+
* // returns true
421+
*
422+
* @example
423+
* var bool = ns.isNegativeIntegerf( 0.0 );
424+
* // returns false
425+
*
426+
* @example
427+
* var bool = ns.isNegativeIntegerf( 10.0 );
428+
* // returns false
429+
*/
430+
isNegativeIntegerf: typeof isNegativeIntegerf;
431+
358432
/**
359433
* Tests if a double-precision floating-point numeric value is negative zero.
360434
*
@@ -444,6 +518,31 @@ interface Namespace {
444518
*/
445519
isNonNegativeInteger: typeof isNonNegativeInteger;
446520

521+
/**
522+
* Tests if a finite single-precision floating-point number is a nonnegative integer.
523+
*
524+
* ## Notes
525+
*
526+
* - The function assumes a finite number. If provided positive infinity, the function will return `true`, when, in fact, the result is undefined.
527+
* - The function does not distinguish between positive and negative zero.
528+
*
529+
* @param x - value to test
530+
* @returns boolean indicating whether the value is a nonnegative integer
531+
*
532+
* @example
533+
* var bool = ns.isNonnegativeIntegerf( 1.0 );
534+
* // returns true
535+
*
536+
* @example
537+
* var bool = ns.isNonnegativeIntegerf( 0.0 );
538+
* // returns true
539+
*
540+
* @example
541+
* var bool = ns.isNonnegativeIntegerf( -10.0 );
542+
* // returns false
543+
*/
544+
isNonnegativeIntegerf: typeof isNonnegativeIntegerf;
545+
447546
/**
448547
* Tests if a double-precision floating-point numeric value is a nonpositive finite number.
449548
*
@@ -525,6 +624,34 @@ interface Namespace {
525624
*/
526625
isOdd: typeof isOdd;
527626

627+
/**
628+
* Tests if a finite single-precision floating-point number is an odd number.
629+
*
630+
* ## Notes
631+
*
632+
* - The function assumes a finite number. If provided positive or negative infinity, the function will return `true`, when, in fact, the result is undefined.
633+
*
634+
* @param x - value to test
635+
* @returns boolean indicating whether the value is an odd number
636+
*
637+
* @example
638+
* var bool = ns.isOddf( 5.0 );
639+
* // returns true
640+
*
641+
* @example
642+
* var bool = ns.isOddf( -2.0 );
643+
* // returns false
644+
*
645+
* @example
646+
* var bool = ns.isOddf( 0.0 );
647+
* // returns false
648+
*
649+
* @example
650+
* var bool = ns.isOddf( NaN );
651+
* // returns false
652+
*/
653+
isOddf: typeof isOddf;
654+
528655
/**
529656
* Tests if a double-precision floating-point numeric value is a positive finite number.
530657
*
@@ -653,6 +780,30 @@ interface Namespace {
653780
*/
654781
isProbability: typeof isProbability;
655782

783+
/**
784+
* Tests if a single-precision floating-point number is a probability.
785+
*
786+
* ## Notes
787+
*
788+
* - A probability is defined as a number on the closed interval `[0,1]`.
789+
*
790+
* @param x - value to test
791+
* @returns boolean indicating whether the value is a probability
792+
*
793+
* @example
794+
* var bool = ns.isProbabilityf( 0.5 );
795+
* // returns true
796+
*
797+
* @example
798+
* var bool = ns.isProbabilityf( 3.14 );
799+
* // returns false
800+
*
801+
* @example
802+
* var bool = ns.isProbabilityf( NaN );
803+
* // returns false
804+
*/
805+
isProbabilityf: typeof isProbabilityf;
806+
656807
/**
657808
* Tests if a finite double-precision floating-point number is a safe integer.
658809
*

0 commit comments

Comments
 (0)