feat: add TypeScript types #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/types"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@marijnh, Hello. Can you please help me with
prependandappendmethods typing?They'd be something like
append(OrderedMap<T> | {[key: string]: T}): OrderedMap<T>@marijnh, should
Tofthisbe combined with the passed onemapT?Yes, that's the same type. Though I guess you could also do
append(OrderedMap<U> | {[name: string]: U}): OrderedMap<T | U>if you want to be extremely general. But that seems overkill.@marijnh,
prependandappendnow return a combined type ofthisand a passedmap.findis internal. And the type forappend,prepend,subtract, andfromis not right yet. Just do something likeThanks!