Closed StevenJPx2 closed 2 years ago
Good idea, want to submit a pr?
@StevenJPx2 I just tested this out, it works great! I will definitely add this in the next update!
Just out of curiosity, do you know how you would create a similar type for an Array... an array that supports three values (lines, words, chars) in any combination, with autocomplete suggestions?
I'll submit a PR shortly.
Right now
types
in theoptions?
parameter does not have any strict typing.You can leverage template literals to give first-class typing for it:
This will cover all bases and give excellent autocomplete suggestions.