Skip to content

Commit 5bc8d49

Browse files
authored
fix: Fix typo in TS conversion guidelines and enhance them (#182)
1 parent 01329ef commit 5bc8d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/typescript_conversion_guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ import SimpleForm from "sap/ui/layout/form/SimpleForm";
100100

101101
### Create shared type definitions
102102

103-
Many type definitions you create are useful in different files. Create those in a central location like a file in in `src/types/`.
103+
Many type definitions you create are useful in different files. Create those in a central location like a file in `src/types/`.
104104

105105

106106
## Project Setup Conversion
@@ -210,7 +210,7 @@ export default tseslint.config(
210210

211211
Every UI5 class definitions (`SuperClass.extend(...)`) must be converted to a standard JavaScript `class`.
212212
The properties in the UI5 class configuration object (second parameter of `extend`) become members of the standard JavaScript class.
213-
It is important to annotate the class with the namespace in a JSDoc comment, so the back transformation can re-add it.
213+
It is important to annotate the class with the namespace in a JSDoc comment, so the back transformation can re-add it. This @namespace comment MUST immediately precede the class declaration.
214214
The namespace is the part of the full package+class name (first parameter of `extend`) that precedes the class name.
215215

216216
Before (example):

0 commit comments

Comments
 (0)