[dts-generator] Feature Request: TypeScript Interface Generation for UI5 Runtime Types
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 30/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- developer-experience, tooling
Línea de trabajo
Start by reviewing the existing IUI5DefineDependencyNames mechanism and the dts-generator entry points. Compare the proposed metadata typing and BaseObject.isA()/isObjectA() cases, including possible .dtsgenrc or JSDoc inputs. Done would require an agreed generation design and comprehensive completion support for the listed UI5 symbols.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
TypeScript Interface Generation for UI5 Runtime Types
We (as in the UI5 framework runtime team, incl. @codeworrior) would like to request support for generating TypeScript interfaces that contain all runtime UI5 class and interface names to improve code completion.
Motivation
Currently, there's an existing IUI5DefineDependencyNames mechanism used for APIs like sap.ui.require|define. We'd like to extend this concept to provide comprehensive TypeScript support for other parts of UI5 application and control develop.
Proposed Features
We see two different variants for better code completion based on a full automatically generated list of all available symbols (is that the correct word...?):
1. UI5 Metadata Typing
- All places where interface or class names can be used
- i.e. the
interfacesarray and the aggregation types
- i.e. the
- Additionally we think support for data type names would be great, particularly for enums used in control properties
2. Enhanced BaseObject Methods
On top of the UI5 metadata, the runtime offers APIs for type inference:
BaseObject#isA()- Provide type completion for class names and interfacesBaseObject.isObjectA()- Provide type completion for class names and interfaces
Additional info
For the UI5 framework itself, we're (again the framework team ;)) are exploring how we can define the above mentioned APIs and places declaratively. Though we have no further information on that yet, we have discussed to provide a form of marking via either
.dtsgenrcfiles in the resp. libraries, or- JSDoc annotations
Expected Behavior
Developers should be able to get full code completion support when working with UI5 class names, interface names, metadata properties and so on. We envision something similar to the existing support for dependency names in sap.ui.require|define calls (refer to IUI5DefineDependencyNames mentioned above).
- Lenguaje dominante
- TypeScript
- Estrellas
- 213
- Forks
- 35
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de UI5/typescript
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
UI5/typescript#625 · 4 comentarios ·
-
dts-generator
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
UI5/typescript#529 · 3 comentarios ·
-
Dependency DashboardAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
UI5/typescript#587 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
UI5/typescript#532 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
UI5/typescript#520 · 3 comentarios ·
Todos los issues de UI5/typescript
Issues similares
-
combobox: highlighted item never scrolls into view when there's no content part (Ark Command)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
bug P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día