apidoc-plugin-ts
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -107,3 +107,3 @@ "use strict"; | ||
function getInterface(interfacePath, namedInterface) { | ||
var interfaceFile = ast.getOrAddSourceFileFromFilePath(interfacePath); | ||
var interfaceFile = ast.getOrAddSourceFile(interfacePath); | ||
return interfaceFile.getInterface(namedInterface); | ||
@@ -115,4 +115,4 @@ } | ||
function isNativeType(propType) { | ||
var nativeTypes = ['boolean', 'string', 'number', 'Date']; | ||
var nativeTypes = ['boolean', 'string', 'number', 'Date', 'any']; | ||
return nativeTypes.indexOf(propType) >= 0; | ||
} |
{ | ||
"name": "apidoc-plugin-ts", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A plugin for apidoc leveraging TypeScript interfaces.", | ||
@@ -12,6 +12,6 @@ "main": "dist/index.js", | ||
"copy:plugin": "rm -rf node_modules/apidoc-plugin-ts && copyfiles package.json './dist/**/*' node_modules/apidoc-plugin-ts/", | ||
"lint": "tslint --type-check --project tsconfig.json", | ||
"lint": "tslint --project tsconfig.json", | ||
"test": "mocha -r ts-node/register test/**/test.ts", | ||
"prepare": "rm -rf dist && tsc -p src/tsconfig.json", | ||
"prepublish": "npm run prepare && npm run lint && npm run test", | ||
"prepublishOnly": "npm run prepare && npm run lint && npm run test", | ||
"pretest": "rm -rf test/out && npm run copy:plugin && npm run apidoc" | ||
@@ -40,15 +40,15 @@ }, | ||
"devDependencies": { | ||
"@types/chai": "^4.0.1", | ||
"@types/mocha": "^2.2.41", | ||
"@types/node": "^8.0.10", | ||
"@types/chai": "^4.0.4", | ||
"@types/mocha": "^2.2.44", | ||
"@types/node": "^8.0.47", | ||
"apidoc": "^0.17.6", | ||
"chai": "^4.1.0", | ||
"chai": "^4.1.2", | ||
"copyfiles": "^1.2.0", | ||
"mocha": "^3.4.2", | ||
"ts-node": "^3.2.0", | ||
"tslint": "^5.5.0" | ||
"mocha": "^4.0.1", | ||
"ts-node": "^3.3.0", | ||
"tslint": "^5.8.0" | ||
}, | ||
"dependencies": { | ||
"ts-simple-ast": "0.48.0", | ||
"typescript": "2.4.1" | ||
"ts-simple-ast": "0.81.0", | ||
"typescript": "2.6.1" | ||
}, | ||
@@ -55,0 +55,0 @@ "greenkeeper": { |
8979
+ Addedts-simple-ast@0.81.0(transitive)
+ Addedtypescript@2.6.1(transitive)
- Removedts-simple-ast@0.48.0(transitive)
- Removedtypescript@2.4.1(transitive)
Updatedts-simple-ast@0.81.0
Updatedtypescript@2.6.1