microsoft / microsoft/TypeScript
Omit producing "JavaScript heap out of memory" with v3.3
Nessuno ha ancora preso questa issue.
- Lingua principale
- Go
- Stelle
- 111k
- Fork
- 14.3k
- Merge medio
- 2g 4h
- PR unite (30g)
- 132
Descrizione
TypeScript Version: 3.4.0-dev.201xxxxx
- 3.3.0-rc
- 3.3.3333
- 3.4.0-dev.20190223
Search Terms:
Omit
Code
// using "@types/react": "^16.8.4"
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
type XXX = Omit<React.HTMLAttributes<HTMLElement>, 'title'>; // <= this alias is not working
Expected behavior:
It should work as early versions, last tested v3.2.4
Actual behavior:
Compiler throws "JavaScript heap out of memory" and same happens with VSCode Intellisense (stuck for minutes without proper answer).
Playground Link:
Tested code working with playground 3.3. (pasting @types/react at bottom), too big to share.
Related Issues:
Guida per i contributori
Apri 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.
Direzione di ricerca
La issue non fornisce alcun file del repository né un punto di ingresso per i test. Inizia riproducendo l’alias Omit<T, K> con @types/react in TypeScript 3.3/3.4 e confrontalo con 3.2.4; il lavoro è completato quando la compilazione e VSCode IntelliSense non esauriscono più l’heap JavaScript.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react, typescript
- Ambito
- compilers
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100