| 1 |
Source: node-expect-type |
| 2 |
Maintainer: Home Assistant Team <[email protected]> |
| 3 |
Uploaders: |
| 4 |
Edward Betts <[email protected]>, |
| 5 |
Section: javascript |
| 6 |
Build-Depends: |
| 7 |
debhelper-compat (= 13), |
| 8 |
dh-nodejs, |
| 9 |
dh-sequence-nodejs, |
| 10 |
node-typescript, |
| 11 |
Standards-Version: 4.7.3 |
| 12 |
Homepage: https://github.com/mmkal/expect-type |
| 13 |
Vcs-Browser: https://salsa.debian.org/homeassistant-team/js/node-expect-type |
| 14 |
Vcs-Git: https://salsa.debian.org/homeassistant-team/js/node-expect-type.git |
| 15 |
Testsuite: autopkgtest-pkg-nodejs |
| 16 |
|
| 17 |
Package: node-expect-type |
| 18 |
Architecture: all |
| 19 |
Depends: ${misc:Depends} |
| 20 |
Description: Compile-time type assertions for TypeScript |
| 21 |
This library provides a fluent, expectation-style API for writing assertions |
| 22 |
about TypeScript types that are checked by the TypeScript compiler. |
| 23 |
. |
| 24 |
Assertions can compare inferred types against expected types, or against other |
| 25 |
inferred types, and can be chained to inspect specific parts of a type such as |
| 26 |
function parameters, return values, constructor parameters, promise |
| 27 |
resolutions, array item types, and properties on object and class instance |
| 28 |
types. |
| 29 |
. |
| 30 |
It includes matchers for common type relationships, including exact type |
| 31 |
equality, assignability checks, and partial object-shape checks. It also |
| 32 |
includes predicates for special types such as any, unknown, and never, and |
| 33 |
supports inverted assertions. |
| 34 |
. |
| 35 |
These checks are intended to be evaluated by the TypeScript type checker, so |
| 36 |
failures surface as type errors reported by the compiler and editor tooling. |