Skip to content
PluginStats

prettier-plugin-explicit-return weekly downloads statistics

By gavinharris-dev · npm · Prettier plugins

A Prettier plugin that automatically adds explicit return type annotations to TypeScript functions using type inference

View on npm Fresh · Oct 17, 2026

prettier-plugin-explicit-return has 2 recorded weekly downloads on npm, a decrease of 80.0% over the past 30 days.

It ranks #2154 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by 0.0%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
2
Official API · Oct 17, 2026
7-day growth
—
Insufficient history
30-day growth
-80.0%
-8 weekly downloads
90-day growth
0.0%
0 weekly downloads
Rank
#2154
Among tracked npm listings

About prettier-plugin-explicit-return

Prettier Plugin Explicit Return

A Prettier plugin that automatically adds explicit return type annotations to TypeScript functions using type inference.

Installation

Usage

Add the plugin to your Prettier configuration:

.prettierrc.json:

package.json:

Then format your TypeScript files as usual:

Features

This plugin automatically adds explicit return type annotations to:

• ✅ Function declarations • ✅ Arrow functions • ✅ Class methods • ✅ Function expressions • ✅ Async functions (including Promise return types)

Functions that already have explicit return types are skipped to avoid duplication.

Examples

Function Declaration

Before:

After:

Arrow Function

Before:

After:

Class Method

Before:

After:

Function Expression

Before:

After:

Async Function

Before:

After:

Existing Return Types (Skipped)

Functions with existing return types are left unchanged:

Before & After:

How It Works

The plugin uses TypeScript's type checker to infer return types for functions that don't have explicit return type annotations. It:

1. Parses your TypeScript code using TypeScript's compiler API 2. Uses the type checker to infer return types 3. Adds explicit return type annotations to functions that don't have them 4. Preserves all formatting and existing code structure 5. Works seamlessly with Prettier's formatting pipeline

Requirements

• Node.js 14+ • Prettier 3.6+ • TypeScript 5.9+

License

MIT © 2025 Gavin Harris

Description from the npm listing.

  • prettier
  • prettier-plugin
  • typescript
  • return-types
  • type-annotations
  • code-formatting

Where prettier-plugin-explicit-return sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,256 listings · 113 pages · page 108, #15 (overall #2155)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins244 listings · 13 pages · page 9, #20 (overall #180)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-explicit-return weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, 0.0% over 90 days.prettier-plugin-explicit-returnWeekly downloads on npm · Last 90 days2downloads / week0.0% over 90 days0246810Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-explicit-return weekly downloads on npm, last 90 days: 2 weekly downloads as of Oct 17, 2026, 0.0% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-explicit-return weekly downloads growth on npm: 7-day growth unavailable, -80.0% over 30 days, 0.0% over 90 days.prettier-plugin-explicit-returnWeekly downloads growth on npm2downloads / week now7-day growth+2 weekly downloadsInsufficient history30-day growth-8 weekly downloads-80.0%90-day growth+0 weekly downloads0.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-explicit-return weekly downloads growth on npm: 7-day growth unavailable, -80.0% over 30 days, 0.0% over 90 days.
PNG SVG

Ranking history

prettier-plugin-explicit-return npm ranking history: currently #2154 (by weekly downloads).prettier-plugin-explicit-returnnpm ranking · by weekly downloads · Last 90 days#2154current rank#2146#2148#2150#2152#2154#2156Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-explicit-return npm ranking history: currently #2154 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for prettier-plugin-explicit-return
Date (UTC)Weekly downloadsChange vs. previous
20
2+2
00
00
00
00
00
00
0-1
10
10
1-2
30
3—

Similar npm Prettier plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/prettier-plugin-explicit-return. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.