With typescript how can I directly use the types created by "dfx generate"?

You can accomplish the main changes of preventing the default export and avoiding the canisterId issue through dfx.json configs.

"example": {
  "declarations": {
    "node_compatibility": true,
     "env_override": ""
  }
}
2 Likes