Skip to content

Commit

Permalink
Fix typo in assemblyscript-api.mdx (#452)
Browse files Browse the repository at this point in the history
The type of values should be `V`, not `T`.
  • Loading branch information
ljiatu authored Jul 30, 2023
1 parent fa51a6f commit ca0bf64
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ca0bf64

Please sign in to comment.