From 9cb2a9d89bf4becd4455949a04d49d1e2d18309c Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 5 Apr 2023 04:20:48 -0400 Subject: [PATCH] docs: added Typed info --- src.ts/abi/typed.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src.ts/abi/typed.ts b/src.ts/abi/typed.ts index 9db9b08a3..a434aba00 100644 --- a/src.ts/abi/typed.ts +++ b/src.ts/abi/typed.ts @@ -1,5 +1,14 @@ /** - * About typed... + * A Typed object allows a value to have its type explicitly + * specified. + * + * For example, in Solidity, the value ``45`` could represent a + * ``uint8`` or a ``uint256``. The value ``0x1234`` could represent + * a ``bytes2`` or ``bytes``. + * + * Since JavaScript has no meaningful way to explicitly inform any + * APIs which what the type is, this allows transparent interoperation + * with Soldity. * * @_subsection: api/abi:Typed Values */