Skip to content

ContractRunner should be imported using import type #821

Description

@tiakun

The issue is that my Svelte is not compiling due to ContractRunner in the factory does not get imported using import type. I think this is related to #636, but the fix did not include ethers-v6 target. Here is the code sample generated for ethers-v6 target:

https://github.com/dethcrypto/TypeChain/blob/2b29791881cfb87bfff62b31f375943c782a9905/packages/target-ethers-v6-test/types/factories/v0.8.9/ISimpleToken__factory.ts

The generated code should add type to ContractRunner

-import { Contract, Interface, ContractRunner } from "ethers";
+import { Contract, Interface, type ContractRunner } from "ethers";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions