You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Sun, Apr 28, 2019 at 5:46 PM Erez Makavy ***@***.***> wrote:
Current API
map returns an array while filter returns a UniDriverList.
export type UniDriverList<T = any> = {
get: (idx: number) => UniDriver<T>,
text: () => Promise<string[]>,
count: () => Promise<number>,
map: <T>(mapFn: MapFn<T>) => Promise<T[]>,
filter: (predicate: PredicateFn) => UniDriverList
};
##Suggested
Either go with Array of List
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#79>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA4N5J7WFT3PR6CJB3ROQY3PSW2DLANCNFSM4HI6VDFA>
.
Current API
map returns an array while filter returns a UniDriverList.
##Suggestion 1
Either go with Array of List
##Suggestion 2
Expose
toArray
. And then the consumer can use the Array'smap
,filter
,find
.The text was updated successfully, but these errors were encountered: