CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-flow-remove-types

Fast, zero-configuration Flow type annotation removal tool for JavaScript with CLI and programmatic APIs

84

1.09x
Overview
Eval results
Files

Evaluation results

100%

Flow Type Development Environment

Require hook for runtime transformation

Criteria
Without context
With context

Require hook import

100%

100%

Hook invocation pattern

100%

100%

All option usage

100%

100%

Includes pattern usage

100%

100%

Excludes pattern usage

100%

100%

100%

40%

Flow Type Annotation Remover

Basic type annotation removal (function parameters, return types, variable types)

Criteria
Without context
With context

Uses flowRemoveTypes function

100%

100%

Enables all-files mode

0%

100%

Preserves whitespace

100%

100%

Converts result to string

0%

100%

Handles stdin/stdout correctly

100%

100%

100%

Flow Type Transformer with Source Maps

Source map generation (v3 format)

Criteria
Without context
With context

Import flow-remove-types

100%

100%

Use pretty option

100%

100%

Call generateMap method

100%

100%

Extract transformed code

100%

100%

Return correct structure

100%

100%

100%

Flow Type Transformation Utility

Path pattern ignoring

Criteria
Without context
With context

Import and use API

100%

100%

Read source files

100%

100%

Pattern filtering logic

100%

100%

Extract transformed output

100%

100%

Write output files

100%

100%

100%

Flow Type Stripper

File extension filtering

Criteria
Without context
With context

Uses flow-remove-types

100%

100%

Extension filtering

100%

100%

Directory processing

100%

100%

Default extensions

100%

100%

Output handling

100%

100%

100%

Class Type Stripper

Class type features removal (type parameters, implements clause, property types)

Criteria
Without context
With context

Uses flowRemoveTypes function

100%

100%

Returns transformed string

100%

100%

Type parameters removal

100%

100%

Implements clause removal

100%

100%

Property type annotations removal

100%

100%

75%

-25%

Flow Declaration Remover

Declare statement removal

Criteria
Without context
With context

Imports flow-remove-types

100%

100%

Calls main function

100%

100%

Extracts transformed code

100%

0%

Handles declare removal

100%

100%

Preserves executable code

100%

100%

100%

78%

Flow Type Stripper

Interface and type alias removal

Criteria
Without context
With context

Package Import

100%

100%

Core Function Usage

20%

100%

Result Extraction

0%

100%

Interface Removal

0%

100%

Type Alias Removal

0%

100%

Options Configuration

70%

100%

No Manual Parsing

0%

100%

50%

-42%

Flow Type Assertion Stripper

Type assertion removal (as expressions, as const)

Criteria
Without context
With context

Uses flow-remove-types

100%

100%

Handles as expressions

92%

0%

Handles as const

92%

0%

Proper result extraction

100%

100%

Options configuration

60%

100%

11%

11%

Flow Expression Evaluator

flow-node eval and print modes

Criteria
Without context
With context

Uses flow-node command

0%

0%

Implements eval mode

0%

0%

Implements print mode

0%

0%

Passes code correctly

0%

0%

Captures output correctly

0%

50%

Mode selection logic

0%

60%

Install with Tessl CLI

npx tessl i tessl/npm-flow-remove-types
Evaluated
Agent
Codex

Table of Contents