docs-hub icon indicating copy to clipboard operation
docs-hub copied to clipboard

TypeScript imports are not being rendered

Open petertonysmith94 opened this issue 10 months ago • 1 comments

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 };

petertonysmith94 avatar Apr 10 '24 13:04 petertonysmith94