Replies: 4 comments 3 replies
-
@matt-user Thanks for putting this feedback together. I did some formatting and started addressing the first point. |
Beta Was this translation helpful? Give feedback.
-
@matt-user How often the 10th item happens? |
Beta Was this translation helpful? Give feedback.
-
Do you have an example for this? We can definitely improve enums, #1844 suggests something similar so may be able to sync up the solution. |
Beta Was this translation helpful? Give feedback.
-
Investigate further
Potentially related to: Raise issues
Missing links on the homepage to:
Add issue around documenting the Further discussion required
I can see that we currently don't pass down the config to the typegen command: https://github.com/FuelLabs/fuels-ts/blob/master/packages/fuels/src/cli.ts#L94-L96 However, potentially the command you were looking to use was the
We do export types for the enums in the contract (example below). pub enum Difficulty {
Easy: bool,
Medium: bool,
Hard: bool,
} Generates: export type DifficultyInput = Enum<{
Easy: boolean;
Medium: boolean;
Hard: boolean;
}>; Maybe we also want to build out the TypeScript base enums as well? export enum Difficulty {
Easy = "Easy",
Medium = "Medium",
Hard = "Hard",
} What do you think @nedsalk?
🍊 There is this issue open for supporting logs in Typegen. I know currently all our logs are typed as Do you think we can alleviate this with the above? cc. @nedsalk Maybe resolved
I believe this has been resolved by moving What do you think @matt-user?
:green: I assume this has been resolved by the import { Fuel } from "fuels";
import { defaultConnectors } from "@fuels/connectors";
const fuel = new Fuel({
connectors: defaultConnectors({ devMode: true }),
}); |
Beta Was this translation helpful? Give feedback.
-
Hey all, I finished working on a frontend using the ts-sdk and thought I would share some pain points.
fuels versions
not working #1882create fuels
bc I didn't see it in the cli portion of the docsSupport logs in
typegen
#2330fuels dev
hangs on generating types #1886Beta Was this translation helpful? Give feedback.
All reactions