1#  Mapped type expression is not supported
2
3Rule ``arkts-no-mapped-types``
4
5**Severity: error**
6
7ArkTS does not support mapped types. Use other language idioms and regular
8classes to achieve that same behavior.
9
10
11## TypeScript
12
13
14```
15
16    type OptionsFlags<Type> = {
17        [Property in keyof Type]: boolean
18    }
19
20```
21
22## ArkTS
23
24
25```
26
27    class C {
28        n: number = 0
29        s: string = ""
30    }
31
32    class CFlags {
33        n: boolean = false
34        s: boolean = false
35    }
36
37```
38
39