-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
This feature could be used in observable-like generic classes/interfaces:
interface EventSource<Args extends any[]> {
observe(listener: (...args: Args)): void;
map<T>(mapping: (...args: Args) => T): EventSource<[T]>;
}Currently the only way I know of is to fallback to any.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript