4.0.4 • Published 6 months ago

@types/is-natural-number v4.0.4

Weekly downloads
13,184
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/is-natural-number

Summary

This package contains type definitions for is-natural-number (https://github.com/shinnn/is-natural-number.js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/is-natural-number.

index.d.ts

// Type definitions for is-natural-number 4.0
// Project: https://github.com/shinnn/is-natural-number.js
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface Options {
    /**
     * Setting this option true makes 0 regarded as a natural number.
     */
    includeZero: boolean;
}

/**
 * Rreturns true if the first argument is one of the natural numbers.
 * If not, or the argument is not a number, it returns false.
 */
declare function isNaturalNumber(number: number|string, option?: Options): boolean;

export = isNaturalNumber;

Additional Details

  • Last updated: Thu, 23 Dec 2021 23:34:52 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.

4.0.4

6 months ago

4.0.3

7 months ago

4.0.2

8 months ago

4.0.1

2 years ago

4.0.0

5 years ago