Last 12 weeks · 0 commits
5 of 6 standards met
Describe the bug Output types of is broken, observed with plain simple primitive and typed variable. Reproduction https://github.com/NamesMT/starter-ts/tree/antfu/utils_repro System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Clear and concise description of the problem Would be amazing if the package includes a util to convert a string to an URL-slug, it's pretty commonly used when building ECOM / content-centric web applications. Suggested solution Probably something like: I've been using the above snippet for a few projects, haven't hit any weird cases yet. Alternative _No response_ Additional context _No response_ Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Repository: antfu/utils. Description: Collection of common JavaScript / TypeScript utils Stars: 872, Forks: 70. Primary language: TypeScript. Languages: TypeScript (99.5%), JavaScript (0.5%). License: MIT. Latest release: v9.3.0 (5mo ago). Open PRs: 0, open issues: 5. Last activity: 5mo ago. Community health: 85%. Top contributors: antfu, johannschopplich, NamesMT, Wing-9527, LuciNyan, s3xysteak, liuyang0826, jbaubree, akinoccc, xiaoxiangmoe and others.
Describe the bug Passing a positive start and stopping with a negative step into will produce an infinite loop. expect behavior: Reproduction Please refer to the unit test below. System Info Used Package Manager npm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
Describe the bug Return type of cannot be using as keys of generic object type. There is a PR related to this #17. Reproduction typescript playground System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)