See https://medium.com/unsplash/how-we-gradually-migrated-to-typescript-at-unsplash-7a34caa24ef1
This file contains 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
define([ | |
'underscore', | |
'knockout' | |
], function(_, ko) { | |
function Collection() { | |
} | |
Collection.prototype.init = function() { | |
this._instances = ko.observableArray(); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Try LavaScript</title> | |
<!-- | |
Copyright 2011 Ross Angle (rocketnia). This file is released under | |
the Perl Foundation's Artistic License 2.0. | |
Not covered by the license are Underscore, jQuery, jQuery-console, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Try LavaScript</title> | |
<!-- | |
Copyright 2011 Ross Angle (rocketnia). This file is released under | |
the Perl Foundation's Artistic License 2.0. | |
Not covered by the license are Underscore, jQuery, jQuery-console, |