1# Import assertions are not supported 2 3Rule ``arkts-no-import-assertions`` 4 5**Severity: error** 6 7ArkTS does not support import assertions because in the language import is a 8compile-time, not a runtime feature. So asserting correctness of imported APIs 9in runtime does not make sense for the statically typed language. Use ordinary 10``import`` syntax instead. 11 12 13## TypeScript 14 15 16``` 17 18 import { obj } from "something.json" assert { type: "json" } 19 20``` 21 22## ArkTS 23 24 25``` 26 27 // Correctness of importing T will be checked in compile-time: 28 import { something } from "module" 29 30``` 31 32## See also 33 34- Recipe 129: Wildcards in module names are not supported (``arkts-no-module-wildcards``) 35- Recipe 130: Universal module definitions (UMD) are not supported (``arkts-no-umd``) 36 37 38