The point is it fails to load definition files when they are referred from the single tsd.d.ts. Ex: typings/tsd.d.ts (jquery/jquery.d.ts just under typings)
index.ts ... ...
/* Check the file content | |
//var filename = FileHandler.getFileName(); | |
// FileHandler.checkRateFile(); | |
// current use: | |
FileHandler.checkRateFile(function(counter) { | |
$scope.counter = counter; | |
console.log('$scope.counter: '+$scope.counter); | |
}); |
// not using Q for promises (Promises support was added in mid-2013 to | |
// Sequelize, https://github.com/sequelize/sequelize/issues/288 | |
var Sequelize = require('sequelize'); | |
var sequelize = new Sequelize('database_name', 'username', 'password', { | |
dialect: 'sqlite', | |
storage: ':memory:' | |
}); | |
var User = sequelize.define('User', { | |
username: Sequelize.STRING, |
Promise = require 'bluebird' | |
_ = require 'lodash' | |
jsonObj = | |
db: | |
host: "localhost", | |
name: "appform", | |
user: "gcomesana", |
var https = require('https'); | |
var fs = require('fs'); | |
var options = { | |
hostname : 'wordpress.org', | |
port : 443, | |
path : '/latest.zip', | |
method : 'GET' | |
}; | |
var file = fs.createWriteStream("wp_latest.zip"); |
// Both export declaration seems to have the same semantics as for babeljs.io | |
// export class Welcome { | |
class Welcome { | |
constructor(){ | |
this.heading = 'Welcome to the Aurelia Navigation App!'; | |
this.firstName = 'John'; | |
this.lastName = 'Doe'; | |
} | |
get fullName(){ |
class Welcome | |
`console.log("Starting up")` | |
constructor: () -> | |
@heading = 'Welcome' | |
@name = 'John' | |
@firstname = 'Doe' | |
fullname: () -> | |
"#{@name} #{@firstname} |
The point is it fails to load definition files when they are referred from the single tsd.d.ts. Ex: typings/tsd.d.ts (jquery/jquery.d.ts just under typings)
index.ts ... ...
var jwt = function(x) { | |
console.log('transform stuff'); | |
} | |
function thingToBeTestedFactory(jwt) { | |
return function(x) { | |
return jwt(x); | |
}; | |
} |
var uniqueArray = function(arrArg) { | |
return arrArg.filter(function(elem, pos,arr) { | |
return arr.indexOf(elem) == pos; | |
}); | |
}; | |
var uniqEs6 = (arrArg) => { | |
return arrArg.filter((elem, pos, arr) => { | |
return arr.indexOf(elem) == pos; | |
}); |
if (file.isStream()) { | |
var | |
encoding = 'utf8', | |
contents = []; | |
function write (chunk, enc, done) { | |
contents.push(chunk); | |
done(); | |
} |