This commit is contained in:
2026-04-07 14:50:23 +09:00
commit b4e485502b
4778 changed files with 2017091 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import type { PluginMetadata } from '@snyk/cli-interface/legacy/plugin';
import type { ScannedProjectCustom } from './plugins/get-multi-plugin-result';
import type { ScannedProject } from '@snyk/cli-interface/legacy/common';
/**
* Normalizes the target file path for a scanned project across
* test and monitor workflows.
*
* @param {ScannedProject | ScannedProjectCustom} scannedProject - The scanned project containing metadata such as the target file path.
* @param {PluginMetadata} plugin - Metadata about the plugin used to scan the project, which may also include the target file path.
* @param {string} [fallback=''] - A fallback value to return if neither the scanned project nor the plugin contain a target file path. Defaults to an empty string.
*
* @returns {string} - The resolved target file path from either the scanned project, plugin, or the provided fallback value if none are available.
*/
export declare function normalizeTargetFile(scannedProject: ScannedProject | ScannedProjectCustom, plugin: PluginMetadata, fallback?: string): string;