Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

build: add type definitions#26

Open
herrmannplatz wants to merge2 commits intojshttp:master
base:master
Choose a base branch
Loading
fromherrmannplatz:master

Conversation

herrmannplatz
Copy link

No description provided.

*
* The `types` array can contain full MIME types or file extensions. Any value that is not a full MIME types is passed to `require('mime-types').lookup`.
*/
type(types: string[]): string[] | string | string[] | false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Does havingstring[] listed twice do something special or just a typo (sorry, only passiingly-familiar with type script)?

Copy link
Author

@herrmannplatzherrmannplatzJan 20, 2023
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

sorry my fault. realized that the types in @types/accepts doesnt match what the library returns. so i was curious if these types could be just shipped by the library itself.

@pke
Copy link

pke commentedNov 16, 2023

Isn't that already covered by@types/accepts?

@UlisesGascon
Copy link
Member

I agree with@pke, seems likehttps://www.npmjs.com/package/@types/accepts is covering this gap.

@UlisesGascon
Copy link
Member

Based onexpressjs/discussions#192 seems like the current approach is to let types outside of the repositories.

@carpasse
Copy link
Contributor

@UlisesGascon should we close this PR then?

@carpassecarpasse reopened thisMay 8, 2024
@carpasse
Copy link
Contributor

Apologies I closed the PR by mistake when trying to comment 🤦🏻‍♂️

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

@dougwilsondougwilsondougwilson left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@herrmannplatz@pke@UlisesGascon@carpasse@dougwilson

[8]ページ先頭

©2009-2025 Movatter.jp