From c62fd71b2ae33fec167a7573730968cb53db5ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ti=E1=BA=BFn=20Nguy=E1=BB=85n=20Kh=E1=BA=AFc?= Date: Fri, 14 Jun 2024 23:53:57 +1200 Subject: [PATCH] docs: link to Polkadot-API for documentation on codegen --- apps/docs/docs/getting-started/setup.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/docs/docs/getting-started/setup.mdx b/apps/docs/docs/getting-started/setup.mdx index 886c3960..90c5ef50 100644 --- a/apps/docs/docs/getting-started/setup.mdx +++ b/apps/docs/docs/getting-started/setup.mdx @@ -37,7 +37,7 @@ First add Reactive DOT, along with required packages as dependencies to your Rea ## Download & sync metadata -Next, download the latest metadata from the chain you want to connect to and generate the types +Next, download the latest metadata from the chain you want to connect to and generate the types. ```sh # `papi add` is the command @@ -48,6 +48,8 @@ npx papi add dot -n polkadot npx papi ``` +For more information on metadata syncing and type generation, please refer to this [documentation](https://polkadot-api.github.io/polkadot-api-docs/codegen) provided by [Polkadot-API](https://polkadot-api.github.io/polkadot-api-docs). + ## Add type information The records of `ChainId` -> `Descriptor` here will be used to provided you with the right type definitions when using hooks.