TypeScript
TypeScript copied to clipboard
Suggestion: Generic Callback interface
It would be nice to have a generic callback interface as a core type in Typescript. Its very common to have a callback with just one result-parameter.
interface ICallback<T> {
(result: T) : void;
}
Given the small number of characters saved, it's not worth dealing with all the name conflicts this could cause.