• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  Special ``export type`` declarations are not supported
2
3Rule ``arkts-no-special-exports``
4
5**Severity: error**
6
7ArkTS does not have a special notation for exporting types through
8``export type ...``. Use ordinary export instead.
9
10
11## TypeScript
12
13
14```
15
16    // Explicitly exported class:
17    export class Class1 {
18        // ...
19    }
20
21    // Declared class later exported through export type ...
22    class Class2 {
23        // ...
24    }
25
26    // This is not supported:
27    export type { Class2 }
28
29```
30
31## ArkTS
32
33
34```
35
36    // Explicitly exported class:
37    export class Class1 {
38        // ...
39    }
40
41    // Explicitly exported class:
42    export class Class2 {
43        // ...
44    }
45
46```
47
48
49