Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion website/pages/en/developing/assemblyscript-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ import { TypedMap } from '@graphprotocol/graph-ts'

The `TypedMap` class has the following API:

- `new TypedMap<K, V>()` – creates an empty map with keys of type `K` and values of type `T`
- `new TypedMap<K, V>()` – creates an empty map with keys of type `K` and values of type `V`
- `map.set(key: K, value: V): void` – sets the value of `key` to `value`
- `map.getEntry(key: K): TypedMapEntry<K, V> | null` – returns the key-value pair for a `key` or `null` if the `key` does not exist in the map
- `map.get(key: K): V | null` – returns the value for a `key` or `null` if the `key` does not exist in the map
Expand Down