Scan your whole stack
From OX Research Newsroom
Are you using eslint-plugin-expect-type?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.7.3
eslint-plugin-expect-type was last scanned on 24 Nov 2026 at version 0.7.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.7.3 LATEST | 24 Nov 2026 | No rules fired |
| 0.7.2 | 19 Nov 2026 | No rules fired |
| 0.7.1 | 19 Nov 2026 | No rules fired |
| 0.7.0 | 19 Sep 2026 | Not shown |
Findings for v0.7.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.7.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
let value = 9001;
// ^? let value: number
// $ExpectError
value = "over nine thousand";
// $ExpectType number
9001;
Make sure you have TypeScript and @typescript-eslint/parser installed, then install the plugin:
npm i -D eslint-plugin-expect-type
See typescript-eslint's Getting Started docs for how to run ESLint on TypeScript files.
Add the following options to your ESLint configuration file:
import expectType from "eslint-plugin-expect-type/configs/recommended";
export default [
// your other ESLint configurations
expectType,
];
For CommonJS, use
const expectType = require("eslint-plugin-expect-type/configs/recommended").default;.
Then, you'll be able to use ^?, $ExpectError, $ExpectType, and $ExpectTypeSnapshot comments in code assert on types.
If you're still using the legacy ESLint configuration file format:
{
"extends": ["plugin:expect-type/recommended"],
"plugins": ["expect-type"]
}
💼 Configurations enabled in.\
✅ Set in the recommended configuration.\
🔧 Automatically fixable by the --fix CLI option.\
💭 Requires type information.
| Name | Description | 💼 | 🔧 | 💭 |
|---|---|---|---|---|
| expect | Expects type error, type snapshot, or type. | ✅ | 🔧 | 💭 |
You might consider using other popular libraries and tools that can run type assertions:
expectTypeOf('abc').toMatchTypeOf<string>().expectType<string>('abc')()..d.ts definition files.describe() and test() helpers, expect style assertions and a mighty test runner which allows to use specified version of TypeScript.assertType and expectTypeOf assertions.eslint-plugin-expect-type mirrors the DefinitelyTyped TypeScript Support Window.
Roughly, that's major versions of TypeScript less than 2 years old.
Many thanks to @ibezkrovnyi for creating the initial version and core infrastructure of this package! 💖
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks! 🧩
💝 This package was templated with
create-typescript-appusing the Bingo framework.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.