Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

firstValues export in index #969

Open
Hyodori04 opened this issue Feb 14, 2024 · 5 comments
Open

firstValues export in index #969

Hyodori04 opened this issue Feb 14, 2024 · 5 comments
Labels
Area: APIs Things related to external and internal APIs good first issue Good for newcomers and first-timer contributors Priority: Medium This issue may be useful, and needs some attention.

Comments

@Hyodori04
Copy link

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 tunnckoCore added good first issue Good for newcomers and first-timer contributors Priority: Medium This issue may be useful, and needs some attention. Area: APIs Things related to external and internal APIs labels Mar 10, 2024
@tunnckoCore
Copy link
Member

@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
Copy link
Member

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

image

@Hyodori04
Copy link
Author

스크린샷 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
Copy link
Member

@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.

@omkaragrawal-impact
Copy link

Yeah, when tried require (because require is not allowed in tsconfig) it changes to any, and whole dominoes effect start. Update to types is required.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area: APIs Things related to external and internal APIs good first issue Good for newcomers and first-timer contributors Priority: Medium This issue may be useful, and needs some attention.
Projects
None yet
Development

No branches or pull requests

3 participants