async-map-like
ECMAScript Map
like type definition (plus Async).
It has same API Interface with Map - JavaScript | MDN, with additional Async support.
Usage
import { MapLike } from 'async-map-like'
const mapLike: MapLike<string, number> = new Map<string, number>
That's it, enjoy the Duck Typing!
History
master
v0.0.1 (July 25, 2020)
- Create
MapLike
interface for ES6 Map - Create
AsyncMapLike
for ES6 Map like Async interface
Author
Huan LI (李卓桓), Microsoft AI MVP, zixia@zixia.net
Copyright & License
- Docs released under Creative Commons
- Code released under the Apache-2.0 License
- Code & Docs © 2018 Huan LI <zixia@zixia.net>