typescript.api
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -28,3 +28,3 @@ | ||
for(var m in units[n].diagnostics) { | ||
console.log(units[n].diagnostics[m].toString()); | ||
console.log(_fs.basename(units[n].path) + ':' + units[n].diagnostics[m].toString()); | ||
} | ||
@@ -90,2 +90,8 @@ } | ||
exports.resolve = resolve; | ||
function sort(sourceUnits) { | ||
var api = load_typescript_api(); | ||
var sorted = api.Resolve.UnitTopology.sort(sourceUnits); | ||
return sorted; | ||
} | ||
exports.sort = sort; | ||
function compile(sourceUnits, callback) { | ||
@@ -92,0 +98,0 @@ var api = load_typescript_api(); |
{ | ||
"name": "typescript.api", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A compiler as a service api enabling nodejs developers to resolve, compile, reflect and run typescript 0.9 source files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -116,2 +116,5 @@ declare module TypeScript.Api.Units { | ||
declare module TypeScript.Api.Resolve { | ||
class UnitTopology { | ||
static sort(units: Units.SourceUnit[]): Units.SourceUnit[]; | ||
} | ||
class LoadParameter { | ||
@@ -118,0 +121,0 @@ public parent_filename: string; |
Sorry, the diff of this file is too big to display
2852058
55673