type-fest
type-fest copied to clipboard
Add `ArraySlice` & `StringSlice` type #734
array slice & string slice Issue
Thanks contribution. is it ready for review?
@Emiyaaaaa Not quite yet😬, there are still some unit-tests and todo-list that require further work
@Emiyaaaaa Sorry I have been busy recently, now it is ready for review!
The formatting in the code examples needs some work. Make sure it follows the existing code style.
Because of work, I may not have any free time until Saturday. I would greatly appreciate if someone is available to make corrections as per the comments!
@Max10240 There is no rush :)
It's your pull request, so it's your responsibility to address the comments.
Of course, I just don't want it to drag on...
I've noticed some new types in internal.d.ts return the boolean when the input
generic isn't expected, I think we could only care about expected input like all the other types in type-fast (there are lot of case in internal.d.ts). So I suggest return true/false
if generic is computable and return never
if we can't know the result. @Max10240
@Emiyaaaaa Ignore the comment I quoted,I seem to have misunderstood something 😅; If the existing code style prefers "return never", I will make changes as you say! But, again, it will have to wait until Saturday...
@Emiyaaaaa please review it again :)
@Emiyaaaaa renamed files and so on❤️
Good progress on this, but it still requires a large amount of clean up and improvements when it comes to the doc comments and readme.
Bump :)
Any complaint if some one else picks this up and drags it over the line?
Sorry, I almost forgot the work of this thread, if there is no accident, I will update it today or tomorrow according to the modification suggestions
Any complaint if some one else picks this up and drags it over the line?
Of course not, I would appreciate it very much!
Tried my best to fix these comments,almost... please review it again, many thanks! @sindresorhus
@sindresorhus @Emiyaaaaa Is there any problem? ❤
Looks pretty good now.
I noticed that two Add
types are exported, but they don't mean the same thing. Maybe it would be better to rename the Add
that means A + B
to Sum
? @sindresorhus @Max10240
Yeah, it should be Sum
.
I noticed that two
Add
types are exported, but they don't mean the same thing. Maybe it would be better to rename theAdd
that meansA + B
toSum
? @sindresorhus @Max10240
sure
Awesome! Thanks for contributing this, @Max10240 🙏