1# ``export = ...`` assignment is not supported 2 3Rule ``arkts-no-export-assignment`` 4 5**Severity: error** 6 7ArkTS does not support ``export = ...`` syntax. 8Use regular ``export`` / ``import`` instead. 9 10 11## TypeScript 12 13 14``` 15 16 // module1 17 export = Point 18 19 class Point { 20 constructor(x: number, y: number) {} 21 static origin = new Point(0, 0) 22 } 23 24 // module2 25 import Pt = require("module1") 26 27 let p = Pt.origin 28 29``` 30 31## ArkTS 32 33 34``` 35 36 // module1 37 export class Point { 38 constructor(x: number, y: number) {} 39 static origin = new Point(0, 0) 40 } 41 42 // module2 43 import * as Pt from "module1" 44 45 let p = Pt.origin 46 47``` 48 49## See also 50 51- Recipe 121: ``require`` and ``import`` assignment are not supported (``arkts-no-require``) 52 53