node-formidable / formidable

The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Used in production.
MIT License
7k stars 680 forks source link

firstValues export in index #969

Open Hyodori04 opened 4 months ago

Hyodori04 commented 4 months ago

Suggestion

I want to use firstValues function from import But it doesn't export in index.js. other function is exported like

export * from './parsers/index.js'; export * from './plugins/index.js';

Why you guys didn't export helpers.

Thanks you

tunnckoCore commented 3 months ago

@Hyodori04

Yeah, that's a good point. I think the idea was to have helpers and wrapper things on a separate package.

We'll do.

tunnckoCore commented 3 months ago

Oh. There's a packge json exports for the helpers, so you should be able to access them?

image

Hyodori04 commented 3 months ago
스크린샷 2024-03-11 오전 9 47 59

I think it's related typescript. In @types/formidable helpers is not defined. So I can't import.

tunnckoCore commented 3 months ago

@Hyodori04 I think it's related typescript. In @types/formidable helpers is not defined. So I can't import.

oh well, yeah probably the TS package is out of sync.