UNPKG
@atproto/common-web
Version:
latest (0.4.7)
next (0.2.4-next.0)
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.4
0.2.4-next.0
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Shared web-platform-friendly code for atproto libraries
atproto.com
bluesky-social/atproto
@atproto/common-web
/
dist
/
arrays.d.ts
3 lines
•
219 B
TypeScript
View Raw
1
2
3
export
declare
function
keyBy<T, K
extends
keyof T>(
arr
:
readonly
T[],
key
: K):
Map
<T[K], T>;
export
declare
const
mapDefined
: <T, S>
(
arr
: T[],
fn
: (obj: T) => S |
undefined
) =>
S[];
//# sourceMappingURL=arrays.d.ts.map