eslint-plugin-expect-type
remark-typescript-tools | eslint-plugin-expect-type | |
---|---|---|
1 | 3 | |
127 | 87 | |
- | - | |
2.4 | 9.6 | |
5 months ago | 5 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
remark-typescript-tools
-
Extreme Explorations of TypeScript's Type System
Hmm. While it may not be the immediate answer to your question, my Redux teammate Lenz Weber ( @phryneas ) wrote a Remark plugin that parses TS codeblocks out of Markdown and actually runs them through the TS compiler. As part of that I know he generates a bunch of "virtual files", including some parsing that lets you add an extra section of the codeblock representing another file to be compiled along with the actual example. The source for that may at least help give you some examples of how to use TS programmatically:
https://github.com/phryneas/remark-typescript-tools
eslint-plugin-expect-type
-
eslint-plugin-expect-type VS vite-plugin-vitest-typescript-assert - a user suggested alternative
2 projects | 18 Jul 2022
- Extreme Explorations of TypeScript's Type System
-
Is there any known way to measure coverage of... types?
You can test types, at least in terms of asserting happy path types and whether a piece of code, runtime or purely type-level, should trigger a tsc type error. Here's an example using eslint-plugin-expect-type.
What are some alternatives?
ts-regexp - Type-Level Regular Expressions matching with TypeScript
nominal - Powerful nominal types for your Typescript project
tabdb - Using browser tabs as a database like only a maniac would
vite-plugin-vitest-typescript-assert - 🔥 TypeScript type assertion plugin for vitest
type-fest - A collection of essential TypeScript types
sum-types - Safe, ergonomic, non-generic sum types in TypeScript.
typefuck - Type-level Brainfuck interpreter in TypeScript
tsd - Check TypeScript type definitions
get-optional - Typesafe utility functions for getting a nested optional property. For TypeScript and Flow.
eslint-plugin-functional - ESLint rules to disable mutation and promote fp in JavaScript and TypeScript.
reselect - Selector library for Redux
lambda-ioc - Super type safe dependency injection 💉 for TypeScript (inspired by Diddly)