type-coverage-core
Advanced tools
Comparing version 2.6.1 to 2.7.0
@@ -6,3 +6,7 @@ "use strict"; | ||
const typescript_1 = tslib_1.__importDefault(require("typescript")); | ||
function collectAny(node, { file, sourceFile, typeCheckResult, ingoreMap, debug }) { | ||
function collectAny(node, context) { | ||
const { file, sourceFile, typeCheckResult, ingoreMap, debug, processAny } = context; | ||
if (processAny !== undefined) { | ||
return processAny(node, context); | ||
} | ||
const { line, character } = typescript_1.default.getLineAndCharacterOfPosition(sourceFile, node.getStart(sourceFile)); | ||
@@ -9,0 +13,0 @@ if (ingoreMap[file] && ingoreMap[file].has(line)) { |
@@ -90,4 +90,5 @@ "use strict"; | ||
strict: lintOptions.strict, | ||
processAny: lintOptions.processAny, | ||
checker, | ||
ingoreMap | ||
ingoreMap, | ||
}; | ||
@@ -94,0 +95,0 @@ sourceFile.forEachChild(node => { |
@@ -18,2 +18,6 @@ import ts from 'typescript'; | ||
} | ||
/** | ||
* @public | ||
*/ | ||
export declare type ProccessAny = (node: ts.Node, context: FileContext) => boolean; | ||
export interface LintOptions { | ||
@@ -29,2 +33,3 @@ debug: boolean; | ||
absolutePath?: boolean; | ||
processAny?: ProccessAny; | ||
} | ||
@@ -45,2 +50,3 @@ export interface FileContext { | ||
}; | ||
processAny?: ProccessAny; | ||
} | ||
@@ -47,0 +53,0 @@ interface TypeCheckCache extends FileTypeCheckResult { |
{ | ||
"name": "type-coverage-core", | ||
"version": "2.6.1", | ||
"version": "2.7.0", | ||
"description": "A library to check type coverage for typescript code", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "7434331936c8521d97dfe923154c3cea9255688f" | ||
"gitHead": "25f0e17ac40ec7597279341c5117717080708d2b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62692
1309