-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript
Description
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 workingExpected 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:
alexkuz, marcusjwhelan, unional and tianhuil
Metadata
Metadata
Assignees
Labels
Needs ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.This issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScriptAn idea for TypeScript