@types/is-natural-number
TypeScript definitions for is-natural-number
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/is-natural-number 
SYNC missed versions from official npm registry.

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: Tue, 26 Sep 2023 14:36:22 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by DefinitelyTyped.

Current Tags

  • 4.0.2                                ...           latest (3 years ago)
  • 4.0.0                                ...           ts2.0 (7 years ago)
  • 4.0.0                                ...           ts2.1 (7 years ago)
  • 4.0.0                                ...           ts2.2 (7 years ago)
  • 4.0.0                                ...           ts2.3 (7 years ago)
  • 4.0.0                                ...           ts2.4 (7 years ago)
  • 4.0.0                                ...           ts2.5 (7 years ago)
  • 4.0.0                                ...           ts2.6 (7 years ago)
  • 4.0.0                                ...           ts2.7 (7 years ago)
  • 4.0.0                                ...           ts2.8 (7 years ago)
  • 4.0.0                                ...           ts2.9 (7 years ago)
  • 4.0.0                                ...           ts3.0 (7 years ago)
  • 4.0.0                                ...           ts3.1 (7 years ago)
  • 4.0.0                                ...           ts3.2 (7 years ago)
  • 4.0.0                                ...           ts3.3 (7 years ago)
  • 4.0.0                                ...           ts3.4 (7 years ago)
  • 4.0.0                                ...           ts3.5 (7 years ago)
  • 4.0.0                                ...           ts3.6 (7 years ago)
  • 4.0.0                                ...           ts3.7 (7 years ago)
  • 4.0.1                                ...           ts3.8 (4 years ago)
  • 4.0.1                                ...           ts3.9 (4 years ago)
  • 4.0.1                                ...           ts4.0 (4 years ago)
  • 4.0.1                                ...           ts4.1 (4 years ago)
  • 4.0.1                                ...           ts4.2 (4 years ago)
  • 4.0.1                                ...           ts4.3 (4 years ago)
  • 4.0.1                                ...           ts4.4 (4 years ago)
  • 4.0.2                                ...           ts4.5 (3 years ago)
  • 4.0.2                                ...           ts4.6 (3 years ago)
  • 4.0.2                                ...           ts4.7 (3 years ago)
  • 4.0.2                                ...           ts4.8 (3 years ago)
  • 4.0.2                                ...           ts4.9 (3 years ago)
  • 4.0.2                                ...           ts5.0 (3 years ago)
  • 4.0.2                                ...           ts5.1 (3 years ago)
  • 4.0.2                                ...           ts5.2 (3 years ago)
  • 4.0.2                                ...           ts5.3 (3 years ago)

3 Versions

  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           4 years ago
  • 4.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |