@types/is-natural-number
TypeScript icon, indicating that this package has built-in type declarations

4.0.4 • Public • Published

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

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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/is-natural-number

Weekly Downloads

1,250

Version

4.0.4

License

MIT

Unpacked Size

3.19 kB

Total Files

5

Last publish

Collaborators

  • types