Using Typescript interface constructor to modify objects at runtime

This demo will show how to use TypeScript's interface constructor to create a generic method to modify your typescript objects at runtime.

Since I won't go into details in this post about cloning objects in TypeScript, I made sure the code is documented enough for any developer to understand.

You can read more about TypeScript interfaces on https://basarat.gitbooks.io/typescript/docs/types/interfaces.html

Comments are closed