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 u“foo”, “bar”]
nested.string → string
nested.number → number
nested.enum → enum s“foo”, “bar”]
Ampli will generate a following interface:
interface EventProperties{
enum: "foo" | "bar";
nested: {
string: string;
number?: number;
enum: {
bk: string]: any;
};
};
}
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?