Skip to content

Add named plugin exports to formidable types#74513

Open
sleewoo wants to merge 2 commits intoDefinitelyTyped:masterfrom
sleewoo:patch-1
Open

Add named plugin exports to formidable types#74513
sleewoo wants to merge 2 commits intoDefinitelyTyped:masterfrom
sleewoo:patch-1

Conversation

@sleewoo
Copy link

@sleewoo sleewoo commented Feb 12, 2026

Added named plugin exports for octetstream, querystring, multipart, and json.

To match how plugins are used on README:

import formidable, {octetstream, querystring, multipart, json} from "formidable";

Plugins exported by name and works well at runtime: main file exports all plugins and plugins/index.js exports plugins by name

Added named plugin exports for octetstream, querystring, multipart, and json.

To match how plugins are used on [README](https://github.com/node-formidable/formidable?tab=readme-ov-file#useplugin-plugin):

```ts
import formidable, {octetstream, querystring, multipart, json} from "formidable";
```
@typescript-bot
Copy link
Contributor

typescript-bot commented Feb 12, 2026

@sleewoo Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Most recent commit is approved by type definition owners or DT maintainers

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 74513,
  "author": "sleewoo",
  "headCommitOid": "0e314d2513f8bb3feac1ff8116888d378fb1b279",
  "mergeBaseOid": "63f13c28e357c0c74b7fa8f878457e8cfb384ec0",
  "lastPushDate": "2026-02-12T13:10:52.000Z",
  "lastActivityDate": "2026-02-12T13:27:04.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "formidable",
      "kind": "edit",
      "files": [
        {
          "path": "types/formidable/formidable-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/formidable/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "Nemo157",
        "martin-badin",
        "devLana"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 3890878657,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Untested Change This PR does not touch tests labels Feb 12, 2026
@typescript-bot typescript-bot moved this to Waiting for Code Reviews in Pull Request Status Board Feb 12, 2026
@typescript-bot
Copy link
Contributor

🔔 @Nemo157 @martin-badin @devLana — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@sleewoo sleewoo marked this pull request as draft February 12, 2026 13:14
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in Pull Request Status Board Feb 12, 2026
Added type expectations for octetstream, querystring, multipart, and json plugins.
@sleewoo sleewoo marked this pull request as ready for review February 12, 2026 13:24
@typescript-bot typescript-bot removed the Untested Change This PR does not touch tests label Feb 12, 2026
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in Pull Request Status Board Feb 12, 2026
@DangerBotOSS
Copy link

Formatting

The following files are not formatted:

  1. types/formidable/formidable-tests.ts

Consider running pnpm dprint fmt on these files to make review easier.

Generated by 🚫 dangerJS against 0e314d2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

3 participants