Ts callback function type

This blog post explores static typing for functions in TypeScript. For the remainder of this post, most things that are said about functions (especially w.r.t. parameter handling), also apply to methods. Table of contents: Defining statically typed functions # Function declarations # This is an example of a function declaration in TypeScript: function repeat1(str: string, times: number ... ................
................