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

TypeScript imports are not being rendered

Open petertonysmith94 opened this issue 1 year 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

I believe I can make this fix on the docs-hub side without any changes in the fuels-ts repo, thanks!

sarahschwartz avatar Apr 12 '24 15:04 sarahschwartz

This should be resolved on the Fuels TS side:

  • https://github.com/FuelLabs/fuels-ts/issues/2504

Closing issue.

petertonysmith94 avatar Jun 26 '24 12:06 petertonysmith94