Using dot notation in property names will create interfaces with nested properties, but the nested enums will not be typed correctly.
For example, for event with the following properties:
enum → enum [“foo”, “bar”]
nested.string → string
nested.number → number
nested.enum → enum [“foo”, “bar”]
Ampli will generate a following interface:
interface EventProperties{<br /> enum: "foo" | "bar";<br /> nested: {<br /> string: string;<br /> number?: number;<br /> enum: {<br /> [k: string]: any;<br /> };<br /> };<br />}
Other notes:
- The documentation on property types is missing or outdated
- There’s no public repository for Ampli where issue like this or pull request could be created
- Is community forums really the best solution for reporting technical issues?