For example:
In the custom types (definitions.ts file), I defined HeimaIdentity, but there is a CorePrimitivesIdentity in the metadata that is identical to this type.
When I replace HeimaIdentity in the definitions.ts with CorePrimitivesIdentity, the generated types do not include CorePrimitivesIdentity(can't find name error). I have to manually add import { CorePrimitivesIdentity } from "@polkadot/types/lookup".
Is there a way to resolve this issue and directly use the types generated from the metadata without custom definitions? Manually importing this is not a good solution.