source: node_modules/ts-toolbelt/out/Number/IsZero.d.ts@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 578 bytes
Line 
1import { IterationOf } from '../Iteration/IterationOf';
2import { Iteration } from '../Iteration/Iteration';
3/**
4 * @hidden
5 */
6export declare type _IsZero<N extends Iteration> = {
7 '-': 0;
8 '+': 0;
9 '0': 1;
10}[N[1]];
11/**
12 * Check whether a [[Number]] is null or not
13 * @param N to check
14 * @returns [[Boolean]]
15 * @example
16 * ```ts
17 * import {N} from 'ts-toolbelt'
18 *
19 * type test0 = N.IsZero<'0'> // True
20 * type test1 = N.IsZero<'-7'> // False
21 * type test2 = N.IsZero<'7'> // False
22 * ```
23 */
24export declare type IsZero<N extends number> = _IsZero<IterationOf<N>>;
Note: See TracBrowser for help on using the repository browser.