File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/providers/diagnostics Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import type { DependencyInfo , Extractor , ValidNode } from '#types/extractor'
2- import type { PackageVersionsInfoWithMetadata } from 'fast-npm-meta '
2+ import type { PackageInfo } from '#utils/api/package '
33import type { Awaitable } from 'reactive-vscode'
44import type { Diagnostic , TextDocument } from 'vscode'
55import { basename } from 'node:path'
@@ -15,7 +15,7 @@ import { checkVulnerability } from './rules/vulnerability'
1515export interface NodeDiagnosticInfo extends Pick < Diagnostic , 'message' | 'severity' > {
1616 node : ValidNode
1717}
18- export type DiagnosticRule = ( dep : DependencyInfo , pkg : PackageVersionsInfoWithMetadata ) => Awaitable < NodeDiagnosticInfo | undefined >
18+ export type DiagnosticRule = ( dep : DependencyInfo , pkg : PackageInfo ) => Awaitable < NodeDiagnosticInfo | undefined >
1919
2020function getEnabledRules ( ) : DiagnosticRule [ ] {
2121 const rules : DiagnosticRule [ ] = [ ]
You can’t perform that action at this time.
0 commit comments