From ca0bf645d06c13e89a4d3a6adeec6d54b4c72531 Mon Sep 17 00:00:00 2001 From: Jiatu Liu Date: Sun, 30 Jul 2023 11:57:50 -0700 Subject: [PATCH] Fix typo in assemblyscript-api.mdx (#452) The type of values should be `V`, not `T`. --- website/pages/en/developing/assemblyscript-api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/en/developing/assemblyscript-api.mdx b/website/pages/en/developing/assemblyscript-api.mdx index f618606334cf..35637a39f401 100644 --- a/website/pages/en/developing/assemblyscript-api.mdx +++ b/website/pages/en/developing/assemblyscript-api.mdx @@ -176,7 +176,7 @@ import { TypedMap } from '@graphprotocol/graph-ts' The `TypedMap` class has the following API: -- `new TypedMap()` – creates an empty map with keys of type `K` and values of type `T` +- `new TypedMap()` – 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 | 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