typeof and Mapped type in Typescript

I was reading an article introducing the usage of the typeof and Mapped type which was introduced back in TS 2.1. It is quite interesting that typescript can actually make generic of generic and infer the types of properties and then use them for border extensions. For typeof it basically yields the type of permitted property names. A keyof…

My first TS custom decorator

Background Was reading some nestjs related documentation and found the custom decorator portion quite interesting. So decided to write one myself. Decorator vs Annotation Syntax-wise decorator in Typescript is quite similar to the annotation in Java where we can assign metadata information to class/field/method. However under the hood, they are quite different. One of the major…

exclude file from karma coverage report

We have some files that is not so testable (like animation related, or things like polyfills) to be excluded from the karma coverage report. With angular-cli looks like it is straightforward that we can include the below config: However since we are not using cli , we need to tweak ourselves. Found the PR that implements the…