typescript-parser
Advanced tools
Comparing version
@@ -219,3 +219,3 @@ "use strict"; | ||
const resource = this.parsedResources[key]; | ||
if (this.doesExportResource(resource, resourceToCheck)) { | ||
if (resource instanceof File_1.File && this.doesExportResource(resource, resourceToCheck)) { | ||
resources.push(resource.filePath); | ||
@@ -222,0 +222,0 @@ } |
{ | ||
"name": "typescript-parser", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Parser for typescript (and javascript) files, that compiles those files and generates a human understandable AST.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -284,4 +284,4 @@ import { difference, differenceWith, intersection, isEqual } from 'lodash'; | ||
.forEach((key) => { | ||
const resource = this.parsedResources[key] as File; | ||
if (this.doesExportResource(resource, resourceToCheck)) { | ||
const resource = this.parsedResources[key]; | ||
if (resource instanceof File && this.doesExportResource(resource, resourceToCheck)) { | ||
resources.push(resource.filePath); | ||
@@ -288,0 +288,0 @@ } |
256622
0.02%