Suggestion: creation of a generic collection type
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- api
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- PowerShell
- Stelle
- 129
- Fork
- 35
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-typescript-typings
-
status:waiting-for-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
microsoftgraph/msgraph-typescript-typings#756 · 1 reazione ·
-
status:waiting-for-triage type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoftgraph/msgraph-typescript-typings#748 · 2 reazioni ·
-
status:waiting-for-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
-
status:waiting-for-triage type:feature
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 32/100
Tutte le issue di microsoftgraph/msgraph-typescript-typings
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
fb55/htmlparser2#2579 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue needs-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
trycua/hermes-cua-spaces#17 ·
-
area/channels kind/bug priority/medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nanocoai/nanoclaw#4501 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
AndyHazz/bookends.koplugin#134 ·