AArtem UdovichenkoAdd ets2panda
0ee26c4f创建于 2023年10月10日历史提交

No dependencies on TypeScript code are currently allowed

Rule arkts-no-ts-deps

Severity: error

Currently, the codebase implemented in the standard TypeScript language must not depend on ArkTS through importing the ArkTS codebase. Imports in reverse direction are supported.

TypeScript


    // app.ets
    export class C {
        // ...
    }

    // lib.ts
    import { C } from "app"


ArkTS


    // lib1.ets
    export class C {
        // ...
    }

    // lib2.ets
    import { C } from "lib1"