aboutsummaryrefslogtreecommitdiff
path: root/docs/interfaces/test.Assert.md
blob: f03e94578bf10bf67d29856da0f90b2c9f5495af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[ts-types-lang](../README.md) / [Modules](../modules.md) / [test](../modules/test.md) / Assert

# Interface: Assert<_B\>

[test](../modules/test.md).Assert

Assert a boolean expression is true

**`Throws`**

if false

**`Example`**

Here's an example checking if `SomeValue` is not equal to [1,2,3]
Uses - [Not](../modules/util.md#not), [Equals](../modules/util.md#equals)

```ts
Assert<Not<Equals<SomeValue, [1, 2, 3]>>>
```

## Type parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `_B` | extends `boolean` | The boolean value to assert |

## Hierarchy

- [`Effect`](effect.Effect.md)

  ↳ **`Assert`**