Created
June 21, 2017 14:52
-
-
Save ailabs-software/5bd04b0a25565351221dd98a2c7d568b to your computer and use it in GitHub Desktop.
TypeScript changing of type by localscope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var obj: Object = new Object(); | |
class Puppet | |
{ | |
public doTheatricalPuppet(): void | |
{ | |
} | |
} | |
function test() | |
{ | |
if (obj instanceof Puppet) { | |
obj.doTheatricalPuppet(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment