Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eeue56/ts-assert
Assert, but typesafe in typescript
https://github.com/eeue56/ts-assert
Last synced: about 1 month ago
JSON representation
Assert, but typesafe in typescript
- Host: GitHub
- URL: https://github.com/eeue56/ts-assert
- Owner: eeue56
- License: bsd-3-clause
- Created: 2021-11-06T14:10:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-06T17:17:03.000Z (about 3 years ago)
- Last Synced: 2024-11-14T17:06:34.989Z (about 2 months ago)
- Language: TypeScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-assert
Node's Assert module, but typesafe in Typescript.
Provides:
- deepStrictEqual
- strictEqual
- notDeepStrictEqual
- notStrictEqualBut all the actuals must match the type of expected, meaning your asserts are safe at the type level rather than just the data level.
## Install
```
npm install --save-dev @eeue56/ts-assert
```## Usage
```typescript
import * as assert from "@eeue56/ts-assert";
```