main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
359 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { Boolean } from './_Internal';
|
---|
| 2 | /**
|
---|
| 3 | * Logical `!` operator (behaves like the JS one)
|
---|
| 4 | * @param B to negate
|
---|
| 5 | * @returns [[Boolean]]
|
---|
| 6 | * @example
|
---|
| 7 | * ```ts
|
---|
| 8 | * import {B} from 'ts-toolbelt'
|
---|
| 9 | *
|
---|
| 10 | * type test0 = B.Not<B.True> // False
|
---|
| 11 | * type test1 = B.Not<B.False> // True
|
---|
| 12 | * ```
|
---|
| 13 | */
|
---|
| 14 | export declare type Not<B extends Boolean> = {
|
---|
| 15 | 0: 1;
|
---|
| 16 | 1: 0;
|
---|
| 17 | }[B];
|
---|
Note:
See
TracBrowser
for help on using the repository browser.