plutonio
Advanced tools
Comparing version 0.5.2 to 0.6.0
@@ -33,4 +33,2 @@ "use strict"; | ||
exports.default = plutonio; | ||
// const scanned = plutonio.scan(); | ||
// console.log(JSON.stringify(scanned, null, 2)); | ||
//# sourceMappingURL=index.js.map |
@@ -493,2 +493,9 @@ "use strict"; | ||
} | ||
if (type_reference.getText() === 'Date') { | ||
let type_attributes = { | ||
primitive: t.PRIMITIVE.DATE, | ||
original: _resolve_original(node), | ||
}; | ||
return type_attributes; | ||
} | ||
const node_type = checker.getTypeAtLocation(type_reference); | ||
@@ -495,0 +502,0 @@ /* |
@@ -61,2 +61,3 @@ /** | ||
ARRAY: string; | ||
DATE: string; | ||
ENUM: string; | ||
@@ -63,0 +64,0 @@ BOOLEAN: string; |
@@ -17,2 +17,3 @@ "use strict"; | ||
ARRAY: 'array', | ||
DATE: 'date', | ||
ENUM: 'enum', | ||
@@ -19,0 +20,0 @@ BOOLEAN: 'boolean', |
{ | ||
"name": "plutonio", | ||
"version": "0.5.2", | ||
"version": "0.6.0", | ||
"description": "A typescript library that scans your typescript project and generate a schema of all types and interfaces of the project.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -9,4 +9,1 @@ /** | ||
export default plutonio; | ||
// const scanned = plutonio.scan(); | ||
// console.log(JSON.stringify(scanned, null, 2)); |
@@ -613,2 +613,9 @@ /** | ||
} | ||
if (type_reference.getText() === 'Date') { | ||
let type_attributes: t.TypeAttributes = { | ||
primitive: t.PRIMITIVE.DATE, | ||
original: _resolve_original(node), | ||
}; | ||
return type_attributes; | ||
} | ||
const node_type = checker.getTypeAtLocation(type_reference); | ||
@@ -615,0 +622,0 @@ |
@@ -80,2 +80,3 @@ /** | ||
ARRAY: 'array', | ||
DATE: 'date', | ||
ENUM: 'enum', | ||
@@ -82,0 +83,0 @@ BOOLEAN: 'boolean', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
106658
43
2437