docs-hub
docs-hub copied to clipboard
TypeScript imports are not being rendered
Related to issue: https://github.com/FuelLabs/fuels-ts/issues/1960
Summary
TypeScript code snippets have import statements, which aren't being rendered correctly (examples below).
-
Docs Hub
// #import { bn, Contract, FunctionInvocationResult };
-
Fuels-ts Docs
import { FunctionInvocationResult, Contract, bn } from 'fuels';
The fuels-ts
docs has a custom plugin which renders our code snippet imports.
I believe there is work to be done on both repositories, so it would be good to align on this.
Expected
Code snippet imports to be rendered correctly.
e.g. import { FunctionInvocationResult, Contract, bn } from 'fuels';
Actual
Code snippet imports are not rendered.
e.g. // #import { bn, Contract, FunctionInvocationResult };