Suggestion: creation of a generic collection type
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- api
Línea de trabajo
Start by reading the TypeScript definitions for collection response types and the Client.api(...).get() typing used for /me/events. Check how existing collection types represent their value arrays and whether they can be generalized for different item types. Done means the typings expose a reusable generic collection type and the event response can use it; the issue names no files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi,
So I am doing requests to retrieve an array of events, and I noticed that there aren't many types for collections.
If i do the following:
const options = {
authProvider,
};
const client = Client.init(options);
let events = await client.api('/me/events').get();
Then events will be an object with the property value being an array of events.
Maybe this could be added to the typings to solve this:
export interface GenericCollection<T> {
value?: NullableOption<Array<T>>;
}
Where T could be any type that has support for lists which could be declared using a type to limit the options.
Hope this is a good idea?
- Lenguaje dominante
- PowerShell
- Estrellas
- 129
- 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 microsoftgraph/msgraph-typescript-typings
-
status:waiting-for-triage type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
microsoftgraph/msgraph-typescript-typings#756 · 1 reacción ·
-
status:waiting-for-triage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
microsoftgraph/msgraph-typescript-typings#748 · 2 reacciones ·
-
status:waiting-for-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
-
status:waiting-for-triage type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 32/100
Todos los issues de microsoftgraph/msgraph-typescript-typings
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
fb55/htmlparser2#2579 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue needs-review
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
trycua/hermes-cua-spaces#17 ·
-
area/channels kind/bug priority/medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nanocoai/nanoclaw#4501 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
AndyHazz/bookends.koplugin#134 ·