Here's an extract of the generated code: Let's declare the editable and displayName decorators. All I needed to do was to use the types defined specifically for DOM access that is available in Typescript. Like variables, arrays too, should be declared before they are used. Because TypeScript can contextually infer the type string for us, we can change back to just cannot be put as a direct child of … Do you have a question or a suggestion about this post? The