ts-morph-helpers
Advanced tools
Comparing version 0.6.1 to 0.6.2
import type { SourceFile, Symbol } from 'ts-morph'; | ||
/** Function executed for each source file, returns all nodes to recursively add source files of */ | ||
declare type GetSymbols = (sourceFile: SourceFile) => Symbol[]; | ||
type GetSymbols = (sourceFile: SourceFile) => Symbol[]; | ||
/** Function to decide whether traversal should be aborted (current file will be excluded) */ | ||
declare type AbortTraversal = (sourceFile: SourceFile) => boolean; | ||
type AbortTraversal = (sourceFile: SourceFile) => boolean; | ||
/** | ||
@@ -7,0 +7,0 @@ * Start traversal from `entryFile`, `getSymbols` from this source file, then |
import type { Symbol, ImportDeclaration } from 'ts-morph'; | ||
declare type Options = { | ||
type Options = { | ||
onlyRelative: boolean; | ||
}; | ||
declare type GetImportDeclarationsForSymbols = (symbols: Symbol[], options?: Options) => ImportDeclaration[]; | ||
type GetImportDeclarationsForSymbols = (symbols: Symbol[], options?: Options) => ImportDeclaration[]; | ||
/** Get import declarations for symbols (only ./relative ../imports by default) */ | ||
export declare const getImportDeclarationsForSymbols: GetImportDeclarationsForSymbols; | ||
export {}; |
{ | ||
"name": "ts-morph-helpers", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "Helpers for ts-morph", | ||
@@ -33,12 +33,12 @@ "keywords": [ | ||
"dependencies": { | ||
"ts-morph": "16.0.0" | ||
"ts-morph": "17.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "18.11.4", | ||
"@types/react": "18.0.21", | ||
"@types/node": "18.11.9", | ||
"@types/react": "18.0.25", | ||
"barrel-maintainer": "1.5.3", | ||
"prettier": "2.7.1", | ||
"release-it": "15.5.0", | ||
"tsx": "3.11.0", | ||
"typescript": "4.8.4" | ||
"tsx": "3.12.1", | ||
"typescript": "4.9.3" | ||
}, | ||
@@ -45,0 +45,0 @@ "release-it": { |
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
43420
+ Added@ts-morph/common@0.18.1(transitive)
+ Addedts-morph@17.0.0(transitive)
- Removed@ts-morph/common@0.17.0(transitive)
- Removedts-morph@16.0.0(transitive)
Updatedts-morph@17.0.0